Open mrzbn opened 1 year ago
any update on this? i'm having the same issue. The app crashed in runtime @BirjuVachhani
I haven't gotten around it yet! If I understand this correctly, calling startLocationUpdates
(without adding HMS dependency) works, only calling stopLocationUpdates
fails, right?
yes, @BirjuVachhani calling stopLocationUpdates on pause or in background crash the app, here the code where it is crashing i.e LocationProvider class
internal fun stopUpdates() { logDebug("Stopping background location updates") isRequestOngoing.set(false) locationLiveData = MutableLiveData() gmsFusedLocationProviderClient.removeLocationUpdates(pendingIntent) hmsFusedLocationProviderClient.removeLocationUpdates(pendingIntent) // crash here }
probably adding HMS dependency solves the problem, but is there a way that I'm not forced to add the dependency?