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
8
votes
3 answers
FusedLocationProviderClient with Kotlin coroutines
I am trying to request a new location with FusedLocationProviderClient and Kotlin Coroutines. This is my current setup:
class LocationProviderImpl(context: Context) : LocationProvider, CoroutineScope {
private val TAG =…
user9990112
8
votes
2 answers
Fused Location GPS doesn't update until opening Google Maps
I'm using fused location provider in my app which is set to PRIORITY_HIGH_ACCURACY at an interval of 60 seconds. This usually works but sometimes the location doesn't update for 5 to 10 minutes by itself, and I when I open Google Maps, it seems to…

Zishan Neno
- 2,647
- 7
- 34
- 58
8
votes
4 answers
Is Fused Location Provider good choice?
I am developing an application where I want to use Fused Location Provider. But I have some doubts, and couple of questions.
When GPS is off and I set priority to HIGH, does that mean that the GPS will be automatically turned on, or not?
Can I set…
user6450105
7
votes
1 answer
Unit Testing with mocking of FusedLocationProviderClient and dependency injection with Koin
Within our Android app we are using Google Maps API in order to show the users location. At the moment we are using Koin in order to provide a parametered injection (it requires an activity) of the FusedLocationProviderClient dependency into our…

niall8s
- 113
- 7
7
votes
5 answers
Location Updates using google play services and FusedLocationProviderClient
I want to get location updates on a "background service" using latest fused location provider client.I don't want to use the location listeners and Google API Client that all are using.
I also need to use location settings Api provided by google…

Akash Bisariya
- 3,855
- 2
- 30
- 42
7
votes
0 answers
Android 4.4.2 LocationResult.hasResult(intent) gives Unmarshalling unknown type code
In my service I have set the FusedLocation request location to send location to static BroadcastReceiver
public static class LocationReceiver extends BroadcastReceiver {
private String TAG = this.getClass().getSimpleName();
private…

Johny19
- 5,364
- 14
- 61
- 99
7
votes
2 answers
Fused Location Provider - onLocationChanged stops getting called
In our app we used the Fused Location Provider (FLP) to track location. We've noticed that occasionally the app can get into a state where the location callback stops getting called. The app in question is used primarily on two tablets (a nexus 7…

noahd
- 842
- 2
- 13
- 25
7
votes
1 answer
How to change FusedLocationApi update interval after requestLocationUpdates has been called
I am using LocationServices.FusedLocationApi to get location updates at a given interval, which is set on the LocationRequest object that is passed to requestLocationUpdates:
mLocationRequest = new…

Pier-Luc Brault
- 247
- 2
- 4
7
votes
1 answer
Setting mock location in FusedLocationProviderApi
I'm trying to get mock updates from FusedLocationProviderApi, but I can't seem to make it work. This my set up method in android instrumentation test:
locationProvider = new…

wasyl
- 3,421
- 3
- 27
- 36
7
votes
1 answer
Alternative to FusedLocationProviderApi
I don't want my app to rely on Google APIs. Are there any open source alternatives to FusedLocationProviderApi that allow to combine standard GPS and Network providers?

Anton Tananaev
- 2,458
- 1
- 25
- 48
7
votes
1 answer
Android Fused LocationSettingsRequest remove "never" option from startResolutionForResult
aAccording to this:
https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi
You can check if location requirements are met and show a dialog if not, using startResolutionForResult().
In that dialog, you can choose…

user3386025
- 73
- 4
7
votes
1 answer
How to get FusedLocation from IntentService
How to retrieve current location by using the new FusedLocation
API from an IntentService?
How can i make sure that IntentService will receive all
callbacks from FusedLocation API?
ie,
How can i obtain the location object synchronously?

Darish
- 11,032
- 5
- 50
- 70
6
votes
2 answers
FusedLocationProviderClient always reports LocationAvailability false
I have an app which has been live for a couple of years now, but lately, I've been getting reports about the location system not functioning properly.
I have tracked the issue down to the LocationCallback.onLocationAvailability(availability:…

Christian
- 1,155
- 8
- 13
6
votes
2 answers
Android: Use FusedLocationProviderClient to get location once?
With FusedLocationProviderApi being deprecated, I'm having a hard time using FusedLocationProviderClient to get location of a user just once after a button click.

Spotz
- 113
- 3
- 8
6
votes
0 answers
LocationSettingsStatusCodes.RESOLUTION_REQUIRED
I'm using FusedLocationAPI it is working properly but when user disabled location i'm using SettingsApi to show dialog to user to enable location.
In marshmallow and above devices it is working fine but in kitkat if location is enabled or disabled,…

Dhanumjay
- 540
- 7
- 17