You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
I have a foreground service running on android which get's the user's geolocation upon connecting to a bluetooth device. I'm using the "getCurrentLocation" which is provided by the geolocation plugin.
Everything works fine except one case:
App is open -> Works as expected
App is closed but screen is on -> Works as expected
App is killed but screen is on -> Works as expected
App is killed but screen is off for some time -> The Foreground service is unable to get the location
In the geolocation plugin the "requestLocationUpdates" is using the first method without the "PendingIntent". Is there plan to add the functionality that uses the second method of the Android API which uses the "PendingIntent"?
The text was updated successfully, but these errors were encountered:
Which platform(s) does your issue occur on?
I have a foreground service running on android which get's the user's geolocation upon connecting to a bluetooth device. I'm using the "getCurrentLocation" which is provided by the geolocation plugin.
Everything works fine except one case:
App is open -> Works as expected
App is closed but screen is on -> Works as expected
App is killed but screen is on -> Works as expected
App is killed but screen is off for some time -> The Foreground service is unable to get the location
Based on my findings it seems like there are two methods that the Android API provides: https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderClient.html#requestLocationUpdates(com.google.android.gms.location.LocationRequest,%20android.app.PendingIntent)
![Screen Shot 2021-01-28 at 10 40 01 PM](https://user-images.githubusercontent.com/11997837/106228903-60285780-61ba-11eb-9846-bd01d45ddf47.png)
In the geolocation plugin the "requestLocationUpdates" is using the first method without the "PendingIntent". Is there plan to add the functionality that uses the second method of the Android API which uses the "PendingIntent"?
![Screen Shot 2021-01-28 at 10 36 32 PM](https://user-images.githubusercontent.com/11997837/106228916-64547500-61ba-11eb-9a0a-906a9c88dbbc.png)
The text was updated successfully, but these errors were encountered: