Raviraj
Raviraj
I have already asked this question before #74 . Previously I forked this library and added lifecycle listener inside the module and turned location updates on/off when react-native activity changes...
@Agontuk getCurrentLocation API now gets fresh GPS location and handles subscription. So may be you can use it in code, instead of handling subscribing for single location request. https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderClient#public-tasklocation-getcurrentlocation-int-priority,-cancellationtoken-token https://android-developers.googleblog.com/2020/12/improving-urban-gps-accuracy-for-your.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29