Page 1 of 1

geolocation service always fails

Posted: Thu Jun 27, 2013 12:06 pm
by ciccio

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.


geolocation service always fails

Posted: Thu Jun 27, 2013 12:09 pm
by Maryna Brodina

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/


geolocation service always fails

Posted: Thu Jun 27, 2013 12:23 pm
by ciccio

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.


geolocation service always fails

Posted: Thu Jun 27, 2013 12:28 pm
by ciccio

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


geolocation service always fails

Posted: Thu Jun 27, 2013 12:29 pm
by Maryna Brodina

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


geolocation service always fails

Posted: Thu Jun 27, 2013 12:49 pm
by ciccio

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


geolocation service always fails

Posted: Thu Jun 27, 2013 12:55 pm
by ciccio

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


geolocation service always fails

Posted: Thu Jun 27, 2013 1:02 pm
by Anton Artyukh5836028

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


geolocation service always fails

Posted: Thu Jun 27, 2013 1:06 pm
by Maryna Brodina

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


geolocation service always fails

Posted: Thu Jun 27, 2013 1:37 pm
by ciccio

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