Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicosnicolaou16/sampleforegroundservice
This sample project shows the setup for the foreground service. The service in this sample project is a foreground service to request location. The permission for is depend of the foreground service type.
https://github.com/nicosnicolaou16/sampleforegroundservice
android android-app android-application foreground-service jetpack-android jetpack-compose kotlin kotlin-android location-services service
Last synced: 3 months ago
JSON representation
This sample project shows the setup for the foreground service. The service in this sample project is a foreground service to request location. The permission for is depend of the foreground service type.
- Host: GitHub
- URL: https://github.com/nicosnicolaou16/sampleforegroundservice
- Owner: NicosNicolaou16
- Created: 2023-11-25T19:43:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T22:08:52.000Z (3 months ago)
- Last Synced: 2024-11-01T23:17:59.168Z (3 months ago)
- Topics: android, android-app, android-application, foreground-service, jetpack-android, jetpack-compose, kotlin, kotlin-android, location-services, service
- Language: Kotlin
- Homepage: https://medium.com/@nicosnicolaou/foreground-service-in-android-9ff18be69ef6
- Size: 167 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Foreground Service
This sample project shows the setup for the foreground service. The service in this sample project is a foreground service to request location.
The permission for is depend of the foreground service type.## Similar project with (Dart Language)
https://github.com/NicosNicolaou16/SampleForegroundServiceFlutter
# Manifest Setup
```xml
```
# References
https://developer.android.com/about/versions/14/changes/fgs-types-required
https://stackoverflow.com/questions/14385231/android-broadcastreceiver-auto-run-service-after-reboot-of-device## Check my article
https://medium.com/@nicosnicolaou/foreground-service-in-android-9ff18be69ef6Target SDK version: 35
Minimum SDK version: 29
Kotlin version: 2.0.21
Gradle version: 8.7.2