framework7

Open full view…

HTML5 Geolocation & Google map Directions API

emmanueleden
Mon, 12 Sep 2016 12:28:59 GMT

hello house, please i am trying to implement html5 geolocation and google map on my app. when i simulate it on the laptop, it works but when i build the apk using phonegap build it doesnt work. :) i dont know where i am getting it wrong please assist. thankx in advance.

Whebcraft
Mon, 26 Sep 2016 23:28:12 GMT

The reason it doesnt work is because in the browser the Geolocation API is presented with a prompt any time a particular website attempts to access their location information. In mobile apps, the ability to use Geolocation is handled in the permissions settings for that app. This varies a bit depending upon the specific platform, but in general the permission set for the app must contain the references to geolocation in order to have access to these features within the app. (The GPS has to be turned on). Try with these native plugins: https://github.com/apache/cordova-plugin-geolocation https://github.com/christocracy/cordova-plugin-background-geolocation

emmanueleden
Wed, 05 Oct 2016 18:06:03 GMT

thanks.., was able to get this sorted. grateful for your time.

johngachunga
Thu, 05 Jan 2017 06:18:42 GMT

how didi you get this sorted?

johngachunga
Thu, 05 Jan 2017 06:19:06 GMT

*did, encountered same issue

emmanueleden
Mon, 09 Jan 2017 11:16:58 GMT

I had to give permission for d plugin I used.. I did that in d configure file I guess.

emmanueleden
Mon, 09 Jan 2017 11:17:41 GMT

If u could let me know where exactly u are n d exact errors I think I could help with that