Device is not defined on Android, but works on iOS. The geolocation api works on both.
I'm using the Build service. My config.xml has:
App has deviceready run:
alert(device.name);
alert(window.device.name);
The app works on iPhone 5 with iOS 8.4.1. It does not work on HTC One M8 Android 5.0.1 (Lollipop).
"device" is undefined. Any ideas what might be the issue?
Docs:
https://github.com/apache/cordova-plu...
http://docs.phonegap.com/en/1.0.0/pho...
I'm using the Build service. My config.xml has:
App has deviceready run:
alert(device.name);
alert(window.device.name);
The app works on iPhone 5 with iOS 8.4.1. It does not work on HTC One M8 Android 5.0.1 (Lollipop).
"device" is undefined. Any ideas what might be the issue?
Docs:
https://github.com/apache/cordova-plu...
http://docs.phonegap.com/en/1.0.0/pho...


