Giter VIP home page Giter VIP logo

Comments (6)

BiswajitRout avatar BiswajitRout commented on June 15, 2024

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.

yayaa avatar yayaa commented on June 15, 2024

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.

dimkonomis avatar dimkonomis commented on June 15, 2024

Same problem here.. Any update on this?

from locationmanager.

pmsferreira avatar pmsferreira commented on June 15, 2024

screen shot 2017-08-17 at 12 13 41

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.

yayaa avatar yayaa commented on June 15, 2024

@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.

pmsferreira avatar pmsferreira commented on June 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.