Simon Bauman
Posts: 0
Joined: Wed Oct 16, 2013 9:50 pm

User Geolocation not working in Appery app or APK

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!

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

User Geolocation not working in Appery app or APK

Hello Simon!

What device and its version do you use to test?
And what mobile browser and its version?

Simon Bauman
Posts: 0
Joined: Wed Oct 16, 2013 9:50 pm

User Geolocation not working in Appery app or APK

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

User Geolocation not working in Appery app or APK

Thanks. We'll test, but it needs some time. We'll let you know.

Simon Bauman
Posts: 0
Joined: Wed Oct 16, 2013 9:50 pm

User Geolocation not working in Appery app or APK

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

User Geolocation not working in Appery app or APK

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.

Simon Bauman
Posts: 0
Joined: Wed Oct 16, 2013 9:50 pm

User Geolocation not working in Appery app or APK

So invoking the services manually is what's causing the problem described in my originial post?

Simon Bauman
Posts: 0
Joined: Wed Oct 16, 2013 9:50 pm

User Geolocation not working in Appery app or APK

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

User Geolocation not working in Appery app or APK

Hello! We'll check this issue and let you know.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

User Geolocation not working in Appery app or APK

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.

Return to “Issues”