Page 1 of 2
User Geolocation not working in Appery app or APK
Posted: Wed Dec 04, 2013 10:14 pm
by Simon Bauman
Hello,
I've got a google map setup with a users geo location setup however it only seems to work while testing on a pc web browser and not when viewed via the Appery test app (android version), mobile browser (android) or via the .apk export. I've set EnableHighAccuracy to false and increased the timeout but it still doesn't seem to be working.
Could someone please take a look. I've shared the project with support@appery and the link is here: http://appery.io/app/view/74c00321-68...
Thank you!
User Geolocation not working in Appery app or APK
Posted: Wed Dec 04, 2013 10:30 pm
by Alena Prykhodko
Hello Simon!
What device and its version do you use to test?
And what mobile browser and its version?
User Geolocation not working in Appery app or APK
Posted: Wed Dec 04, 2013 10:33 pm
by Simon Bauman
Hi, I'm using a Galaxy S4 running Android 4.2.2. Mobile browser javascript version: V8 3.21.18.8 Chrome version: 31.0.1560.59
User Geolocation not working in Appery app or APK
Posted: Wed Dec 04, 2013 10:38 pm
by Alena Prykhodko
Thanks. We'll test, but it needs some time. We'll let you know.
User Geolocation not working in Appery app or APK
Posted: Wed Dec 04, 2013 10:39 pm
by Simon Bauman
Thank you Alena, I'm really pressed for time and this is the final issue before packing and submitting to Google/Apple for approval. Anything you can do would be great.
User Geolocation not working in Appery app or APK
Posted: Thu Dec 05, 2013 11:00 am
by Maryna Brodina
Hello! You don't need to do preAppery( get_event_bars_info.execute({...../pre and preAppery( get_user_location.execute({..../pre delete it and just invoke service.
User Geolocation not working in Appery app or APK
Posted: Thu Dec 05, 2013 4:52 pm
by Simon Bauman
So invoking the services manually is what's causing the problem described in my originial post?
User Geolocation not working in Appery app or APK
Posted: Thu Dec 05, 2013 5:22 pm
by Simon Bauman
Update: Using the appery platform vs. invoking the service manually does not appear to be the problem. It's looking to me like the Appery user geolocation service (or an underlying element .ie, phonegap's api) is horribly slow. Even with HighAccuracy set to false and a nice 20 second timeout fails most all the time. I say that because on occasion, I will get the user location plotted to the map. This is strange since using a native app (or google map) will plot my location within just a couple seconds.
Can I just get a confirmation from Appery support on this so that I don't continue to spin my wheels on this forever.
Thanks
User Geolocation not working in Appery app or APK
Posted: Fri Dec 06, 2013 10:23 am
by Maryna Brodina
Hello! We'll check this issue and let you know.
User Geolocation not working in Appery app or APK
Posted: Fri Dec 06, 2013 3:37 pm
by Kateryna Grynko
Hi Simon,
It works fast with EnableHighAccuracy=false for us.
Let's check this. Please try the following.
Create an empty app with an only page and an only Geolocation service. Invoke the service on Button Click event.
On service Success and Fail add JavaScript alerts to monitor the behaviour. Install the app on your device.
If this works for you then the problem is caused by your app logic.
If it is still slow you can try different Libraries versios in App settings - External resources.
If it still works slow even with different Libraries version then the problem is in your device.
Please let us know about the result.