Google maps on android

  • 1
  • Question
  • Updated 4 years ago
Hi, im working with the google maps API and the Cordova geolocation plugin, when i run it on ios it works well but in android not, what do i need to do, i post some ss, everything else is in the default configuration.

index.js

index.html

config.xml
Photo of AleXis UnscaRred MoraLes

AleXis UnscaRred MoraLes

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@AleXis,
Please read the FAQ I gave you the link for. You are likely not waiting for the 'deviceready' event _OR_ you do not have the phonegap.js file listed in your index.html. If you need a tutorial, please ask. There are plenty on the Internet. I have a tutorial as well.

Jesse
Photo of Saba Rais

Saba Rais

  • 724 Posts
  • 3 Reply Likes
Is cordova.js and phonegap.js are same?
Can we use cordova.js instead of phonegap.js?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Is cordova.js and phonegap.js are same?
As opposed to popular belief, they are not the same.

Can we use cordova.js instead of phonegap.js?
It is better to use cordova.js, because it will find the generated config_plugins.xml file even if html pages are placed in subdirectories. phonegap.js won't.