When app running in foreground and activity is vis...
# android
a
When app running in foreground and activity is visible to user then using
LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY
in a bound service i am able to receive location updates in the bound service but when the app is in background and the same bound service running as foreground service using
LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY
does not giving location updates but if i use
LocationRequest.PRIORITY_HIGH_ACCURACY
then i am able to receive the location updates in the foreground service. does android puts any kind of restriction when using
LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY
in foreground service?
google 1
stackoverflow 3