I use the mdg:geolocation package and I try to run it on an Android device, but I no longer get lat and lang, when I tried this a few months ago, it works fine
I am using the version of this package version 1.0.3 *

chrome throws above warning which leads me to this page
as this is a warning that should work.
I even tried to run the application by providing --mobile-server=https://myapp.com not yet working.
any ideas?
My meteor version is 1.1. * (not the last) geolocation - 1.0.3
EDIT
I tried using the navigator object as shown below
var onSuccess = function(position) { console.log('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude + '\n' + 'Altitude: ' + position.coords.altitude + '\n' + 'Accuracy: ' + position.coords.accuracy + '\n' + 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' + 'Heading: ' + position.coords.heading + '\n' + 'Speed: ' + position.coords.speed + '\n' + 'Timestamp: ' + position.timestamp + '\n'); };
I did not have any logs in the console. Errors or successful callbacks are called
EDIT 2 :
This does not work when running my application on an Android mobile phone. If I run it on the Internet, I get lat and lang values.
EDIT 3
I am building an apk with --server pointing to https://myapp.com , but this does not work.
EDIT 4
I have another project with all the latest version, all of the above steps still don't work (even with apk build version)
EDIT 5
After trying @Adam I get the following error
code: 3 message: Timeout expired
tried another option with timeout , enablehighaccuracy and maxage while nothing works.
cordova meteor
Sasikanth
source share