Closed yasirahmedkhan closed 3 years ago
@yasirahmedkhan
You can use this method:
Please keep in mind that this only works with LifecycleService
. So your service must extend it.
@yasirahmedkhan
You can use this method:
Please keep in mind that this only works with
LifecycleService
. So your service must extend it.
Thanks dear It is working now, but now another problem is coming when my app goes in background location updates stop working. What can be the possible issue ?
@yasirahmedkhan You need to request background location permission I think.
Do this before starting location updates:
Locus.configure {
enableBackgroundUpdates = true
}
Feel free to reopen if you need any help.
I want to use locus in my foreground Service. Hello, I want to access location when my application is in background for this i have created a foreground service in my app, but im unable to use locus in foreground service as it is asking for instance of fragment, Kindly give me some sample code that how can i use this library if foreground service ?