Giter Club home page Giter Club logo

Comments (5)

tsubik avatar tsubik commented on July 20, 2024

Hey @EIrwin this looks like geolocation plugin issue, can you check logs through adb logcat

from cordova-plugin-geofence.

EIrwin avatar EIrwin commented on July 20, 2024

@tsubik Thanks for the prompt response.

I am working on pinpointing the issue.

A weird correlation I have made is that when I compile down to android on my PC, it hangs. However when I compile down to android on my macbook, it works.

Let me run adb logcat and see if I can find the cause.

from cordova-plugin-geofence.

EIrwin avatar EIrwin commented on July 20, 2024

@tsubik I ran the following

adb logcat | grep -i "location"

and got the following which seems to be directly related to the problem.

I/chromium(25538): [INFO:CONSOLE(20306)] "Obtaining current location...", source: file:///android_asset/www/lib/ionic/js/ionic.bundle.js (20306)
D/LocationManagerService(  749): getProviders()=[passive, gps]
D/LocationManagerService(  749): request 443c3c60 fused Request[ACCURACY_BLOCK fused requested=0 fastest=0] from com.tsubik.ionicgeofence(10316)
D/LocationManagerService(  749): provider request: fused ProviderRequest[ON interval=0]
D/LocationManagerService(  749): Location listener died
I/LocationManagerService(  749): remove 443c3c60 by com.tsubik.ionicgeofence
D/LocationManagerService(  749): provider request: fused ProviderRequest[OFF]
W/GeofencerStateMachine( 1245): Ignoring removeGeofence because network location is disabled.

This is not ALWAYS the case, but majority of the time it is. What is also happening is, it will fail or wait for awhile and hang with the loading screen and then 10 or more minutes will go by, and then it will proceed to the geofence detail page. Any ideas?

from cordova-plugin-geofence.

EIrwin avatar EIrwin commented on July 20, 2024

@tsubik As it turns out. It seem like this is something related to the 'High accuracy setting on my Samsung Galaxy S5' It was not on high accuracy, which seemed like it really had a hard time resolving the location correctly.

I was able to fix this by changing my Location setting from GPS Only to High Accuracy

from cordova-plugin-geofence.

tsubik avatar tsubik commented on July 20, 2024

@EIrwin great to hear that you resolved the problem. Thanks for letting me know

from cordova-plugin-geofence.

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.