The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.
Questions tagged [fusedlocationproviderapi]
436 questions
6
votes
1 answer
FusedLocation API - onLocationChanged is not called
The flow in our app is the following:
show a fullscreen activity explaining to the user why we need the GPS-location
acquire the permission for GPS
display loading spinner
get first geolocation
send first location to server
load relevant data from…

TormundThunderfist
- 697
- 7
- 24
6
votes
1 answer
Android - Fused Location Provider API issues with satellite information (count, signal, etc)
I am working on a project where we are trying to track the position of a device and keep the data for later use. Before I talk about the issue I would like to provide some background.
By searching around StackExchange and Google and everywhere else,…

MadDim
- 543
- 6
- 22
6
votes
1 answer
Android Fused Location Won't Deliver Periodic Updates
I want to get a hard location fix every certain minutes & a soft location fix every certain minutes and if user has moved more then certain meters. I been testing the logic with following piece of code walking (tried it with larger parameters as…

2cupsOfTech
- 5,953
- 4
- 34
- 57
6
votes
0 answers
FusedLocationApi Background Location service stops receiving updates randomly
i'm trying to use FusedLocationApi with pending intent to get period location updates so i can send the data to some server for processing. Everything works. However, there are some instances where the broadcast just stops receiving. I would need to…

Jason Law
- 61
- 3
5
votes
0 answers
Android Automotive Emulator (ARM): Fused Location Provider API provides invalid locations
The Fused Location Provider API seems to be broken on the Android Automotive Emulator image Sv2 (API 32, arm64-v8a, with Play Store). Does anyone know of a workaround? It's the only Automotive OS image currently available for ARM-based architectures…

leonbusse
- 111
- 3
5
votes
1 answer
Android O, Background Service is running for more than 30 minutes. Why?
I am using FusedLocationProvider API to register some Geofences with PendingIntent, when my app gets started (app was manually killed to trigger this behavior) via Geofence event, I start a background service to do some work.
In this Service I…

Waqas
- 4,411
- 6
- 27
- 31
5
votes
1 answer
Android Location "going for a walk" by itself
I am working on the GPS part of a project and I would like to get something past the community. I have searched around for all the typical GPS "jumping and drifting" and I have worked on improving what I get but last week I got some really weird…

MadDim
- 543
- 6
- 22
5
votes
1 answer
Android background location update is not coming when the screen is off
We are working on mobile tracking app. For location updates, Fused location API is used with High Accuracy as priority.
Location update is required even when the screen is off. So, we are using background Service. Background Service is also…

pratick
- 303
- 1
- 3
- 9
5
votes
1 answer
android Mock location not working with locationservices.fusedlocationapi
After downloading and using 'Fake Gps' from google store, I thought of creating one for educational purposes.
I am using GoogleApiClient FusedLocationAPI for getting my current location and for creating a mock location. I am able to get my current…

j4rey
- 2,582
- 20
- 34
5
votes
1 answer
Periodic foreground location tracking on Android
I am in the process of creating a custom Phonegap plugin for Android that monitors location both when the app is in the foreground and when it is backgrounded. Google documentation on using the FusedLocationProviderAPI is remarkably clear. The…

DroidOS
- 8,530
- 16
- 99
- 171
5
votes
0 answers
Prevent wrong location detected with Network provider
I have an Android application with a widget that uses the fused location provider API to keep track of the user's location. The widget works fine on most of the cases but sometimes, users report that the widget reports a wrong location, many miles…

a.p.
- 3,248
- 7
- 30
- 48
5
votes
2 answers
Fused Location API gives Inaccurate Lat, Long when plotting in map it is slightly away from the road path even for low accuracy value
Google provides the fused location provider API to obtain location co-ordinates. According to the documentation, the API internally polls location data from different providers (GPS, Wifi, Cellular networks) and provides the best location. But, in…

M Vignesh
- 1,586
- 2
- 18
- 55
4
votes
0 answers
fusedLocationProviderClient requestLocationUpdates with pendingIntent does not fire
I am trying to run a location tracker in the background. To do this, i read i need to use pendingIntent with fusedLocationProviderClient, so that my app will continue to query the user's location every x seconds, even if the app is…

Russell Butler
- 326
- 4
- 15
4
votes
1 answer
What is the best way to receive a callback on completion of `removeLocationUpdates` of `FusedLocationClientProvider`
I have the following code which is working as expected but when I request to remove location updates using the stopLocationUpdates method shown below, my onCompleteListener attached to removeLocationUpdates doesn't get triggered on the first…

xdzc
- 1,421
- 1
- 17
- 23
4
votes
1 answer
Android how to get location update in batch
I am trying to get location update in background with the batched version of Fused Location Provider Api.
I am doing this by following Google guidelines by requesting a location updates with a callback on a broadcast PendingIntent.
For the location…

Pat
- 172
- 15