1. You should use cordova-plugin-geolocation from npm
2. Perhaps you are not waiting for the deviceready event to fire; perhaps you don't have cordova.js referenced; if you're building with PGB, perhaps you have cordova.js or phonegap.js included in your assets.
1.) Wouldn't that only matter for local builds? I'm talking about when it's built through PhoneGap Build.
2.) Cordova.js definitely is included. The app doesn't initialize until DeviceReady fires.
Re 1: No; this is true for both building locally and when using PGB. Your syntax including the geolocation plugin is outdated and defaults to using the deprecated PhoneGap Build plugin repository. These plugins are ancient and are definitely not getting updated. Switch to the newer plugin tag and new plugin ID, and you'll go a lot further:
<plugin name="cordova-plugin-geolocation" source="npm" />
More info: Plugins | PhoneGap Docs
Wow, you're awesome. I remember like it was yesterday when "gap:plugin" was added. This whole system is moving so quick it's hard to keep up.
So I have similar problem, using phonegap it works 100s on iPhone, Android just refuses to give me any GPS coords.
Im using CLI-6.3.0, ive included the npm reference as above and still no joy, I notice the config parameters below, but if I include in config.xml, it will not build on Phonegap Build, please help.
<gap:config-file overwrite="true" parent="/manifest" platform="android">