ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

i added a geolocation service in my app
Image

and i mapped it to two local storage variables (user_lat, user_lon)

Image

I invoke the service on button click [mobilebutton_23]. but the service doesn't work.

i added two alert:
1 on geolocation service succcess: code alert(localStorage.getItem('user_lat'));/code
2 on geolocation service fail: codealert('geolocation Service Fail'); /code

and everytime i click the button i get the geolocation Service Fail alert.

Yesterday i tested the geolocation Service and it was working but today i get this big probelm. How can i solve it..

i'm going to share my project with appery support to let you to take a look.

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

geolocation service always fails

Hello! No need to share for now. Are there any errors in console? If you want us to take a look just post public app link (you can also send it to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a).

http://docs.appery.io/getting-help/

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

the link is http://appery.io/app/mobile-frame?src...

if you click on the button "Button" you invoke the service.
i tried to use the appery.io tester and i got the spinner always running
(on the new tester even the camera button i have on another page doesn't work).
a exported the APK but when i click on the same button i get the geolocation Service Fail alert.

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

sorry the public link should be
http://appery.io/app/mobile-frame?src...

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

geolocation service always fails

Thank you for link. We have problems with Tester. It should be fixed soon. Here is what I get when testing in browser
Image

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

i tried on the browser again and it is working, but whe i export the apk and i test it on my phone (android 4.02) it doesn't work and i continue to get he geolocation Service Fail alert.

I'm trying to change the target version of the app from 4.1 to 4.02 and i'm going to test

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

test failed..
even i changed the target version i still have the same problem

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

geolocation service always fails

Hello,
Please check app permision for generated apk.
Must be checked this list of permissions:
codeACCESS_COARSE_LOCATION
ACCESS_FINE_LOCATION
ACCESS_LOCATION_EXTRA_COMMANDS/code

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

geolocation service always fails

We also updated Appery.io tester, you can try to test with updated tester version.

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service always fails

thanks the apk works. i restarted my phone and it works. I guess it was a cache problem on my mobile. Anyway thank you for you kind help

Return to “Issues”