Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huawei support causes crash when calling "stopLocationUpdates" #90

Open
mrzbn opened this issue Oct 16, 2023 · 3 comments
Open

huawei support causes crash when calling "stopLocationUpdates" #90

mrzbn opened this issue Oct 16, 2023 · 3 comments

Comments

@mrzbn
Copy link

mrzbn commented Oct 16, 2023

probably adding HMS dependency solves the problem, but is there a way that I'm not forced to add the dependency?

@ruifernando7
Copy link

any update on this? i'm having the same issue. The app crashed in runtime @BirjuVachhani

@BirjuVachhani
Copy link
Owner

I haven't gotten around it yet! If I understand this correctly, calling startLocationUpdates (without adding HMS dependency) works, only calling stopLocationUpdates fails, right?

@Tushar-Salvi
Copy link

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants