zeroasterisk / meteor-cordova-geolocation-example

Example Geolocation (BG & FG)
http://geolocationbackgroundexample.meteor.com
32 stars 6 forks source link

Not working correctly on Android #1

Open Wenape opened 10 years ago

Wenape commented 10 years ago

I'm running the example on an Android phone (Galaxy S4).

When using "Get Now" I get:

I20141110-16:17:30.656(-3) (android:http://meteor.local/packages/zeroasterisk_cordova-geolocation-foreground.js:67) Uncaught Error: GeolocationFG error [3] Timeout expired [500]

When using "Start" I get:

I20141110-16:17:36.159(-3) (android:http://meteor.local/packages/zeroasterisk_cordova-geolocation-background.js:370) GeolocationBG: get: init
I20141110-16:17:36.165(-3) (android:http://meteor.local/packages/zeroasterisk_cordova-geolocation-background.js:134) backgroundGeoLocation ~ object
I20141110-16:17:36.172(-3) (android:http://meteor.local/packages/zeroasterisk_cordova-geolocation-background.js:236) GeolocationBG: setup: end

No updates appear on the table, except sometimes, when playing around with both options: device -> ?(?)[?] and uuid -> ? would get logged into the table.

zeroasterisk commented 10 years ago

hmmm :/ ok - I'll be looking into this sometime (hopefully) this week. thanks for the report.

I do remember reading that you have to get the user to do foreground GPS/Geolocation to get past the "allow/authorize" step, before the background proccess works.

jhmacdon commented 9 years ago

I am having the same issue. I even get a notification saying "background GPS enabled" but it neither updates with position nor logs it when I hit "get now"

ghost commented 9 years ago

I just tested but it's not working on Android at all. When I hit "get now", I get empty location and ???? for other columns. BTW, it works ok in desktop browser.

Could you please enlighten me how to get it work on android? Thank you.