mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 561 forks source link

how to fetch location when app is terminated in Android #532

Closed mohammad-chavoshipor closed 1 year ago

mohammad-chavoshipor commented 3 years ago

Your Environment

darron1217 commented 3 years ago

I've created fork to support Android SDK 29+ https://github.com/darron1217/react-native-background-geolocation

dfg31197 commented 3 years ago

I've created fork to support Android SDK 29+ https://github.com/darron1217/react-native-background-geolocation

It doesn't seem to solve the issue. Plus now, after killing and reopening the app, location doesn't work

luciman commented 3 years ago

I have the same problem. Do you find any solution? thank you

wazimBadsha commented 3 years ago

Any solution ? after terminating and reopening the app location doesn't work

kitravee commented 3 years ago

let's try to add gms:play-services-gcm to fix app crash I hope this may help this issue.

android/app/build.gradle implementation 'com.google.android.gms:play-services-gcm:15.0.1' implementation 'com.google.android.gms:play-services-location:15.0.1'

image

@darron1217 if this one help to fix this issue, please add it to https://github.com/darron1217/react-native-background-geolocation

pavelustenko commented 3 years ago

I've created fork to support Android SDK 29+ https://github.com/darron1217/react-native-background-geolocation

Thanks a lot! You literally saved me!