Comments (6)
I am also facing the same error. Did anyone find any solution?
Fatal Exception: java.lang.IllegalStateException: GoogleApiClient is not connected yet.
at com.google.android.gms.internal.zzaas.zzb(Unknown Source)
at com.google.android.gms.internal.zzaav.zzb(Unknown Source)
at com.google.android.gms.internal.zzaat.zzb(Unknown Source)
at com.google.android.gms.internal.zzary.requestLocationUpdates(Unknown Source)
at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationSource.requestLocationUpdate(GooglePlayServicesLocationSource.java:91)
at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationProvider.requestLocationUpdate(GooglePlayServicesLocationProvider.java:227)
at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationProvider.onResult(GooglePlayServicesLocationProvider.java:160)
at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationSource.onResult(GooglePlayServicesLocationSource.java:125)
at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationSource.onResult(GooglePlayServicesLocationSource.java:25)
at com.google.android.gms.internal.zzaaf$zza.zzb(Unknown Source)
at com.google.android.gms.internal.zzaaf$zza.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
This is the major issue in my live app. Please fix this as soon as possible.
Thank you for your awesome work. :)
from locationmanager.
You're right, i'll take a look as soon as i have time.
Meanwhile feel free to create a PR to fix it, if you'd like to.
It would be also nice to have the usecase, how you face this issue, what are the steps to reproduce and so on. But if you don't have it, it is still fine, i'll take a look.
from locationmanager.
Same problem here.. Any update on this?
from locationmanager.
I created a new LocationManager instance (with different configuration for my needs), but when call locationManager.get() I have the same problem reported here.
PS: I think I have created the new LocationManager instance correctly.
from locationmanager.
@ncapdevi @BiswajitRout @dimkonomis @pmsferreira
v2.0.4 is released, please try with that it should be fixed now.
Thanks for patience and help.
from locationmanager.
@yayaa I updated your library to the last version but it seems that something is wrong.
https://user-images.githubusercontent.com/16557512/29409737-8b8751e4-8345-11e7-85bb-99c52f99285a.png
I have created a new LocationManager with a configuration that asks user to allow permissions or turn on GPS but even when I "allow" permission, i received the message “LocationManager: Couldn't get permission, Abort!”
So I tried to override onRequestPermissionsResult and force to call getLocation() (with GPS turned off) and I didn't received the prompt to turn on GPS and the messages were "DefaultLocationProvider: GPS is not enabled, moving on with Network..." and "Network is not enabled, calling fail..."
May the new LocationManager creation is wrong ?
Thanks
from locationmanager.
Related Issues (20)
- system crash HOT 4
- How to add geofence
- Using FusedLocationProviderClient? HOT 4
- About "GooglePlayService Dialog cancel / dismiss handling" HOT 5
- keepTracking == True does not respect requiredTimeInterval value HOT 4
- Use mock locations HOT 1
- Address HOT 1
- Duplicate system dialog to enable GPS HOT 2
- location fetching every second HOT 1
- I want to know about Thread question. HOT 1
- ACCESS_BACKGROUND_LOCATION example? HOT 2
- Firebase reports: Fatal Exception: java.lang.SecurityException HOT 1
- onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java For LocationBaseActivity HOT 3
- Can't get location when phone is indoors (in building)
- Setting screen request code
- crashes the app with new lib com.google.android.gms:play-services-location:21.0.0 HOT 1
- App crash on library version 2.4.1
- App crash - GooglePlayServicesLocationProvider.onFailure
- LocationManager is not able to retrieve location on a device without Google Mobile Services and without GPS. HOT 1
- No live tracking HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locationmanager.