OK -- I'm cleaning it up and deleting a TON of things -- trying again.
OK -- I'm cleaning it up and deleting a TON of things -- trying again.
The Geolocation service is a wrapper on top of Cordova Geolocation service. The actual location is returned by your device. If you are testing from a desktop browser, your location might be determined by your IP address (which might be not the location you are physically at).
Two things you can try:
1) Create a brand new app, add the Geolocation service there and display the result
2) Use the Cordova API directly:
pre
var onSuccess = function(position) {
Code: Select all
Apperyio("lat").text(position.coords.latitude);
Apperyio("lng").text(position.coords.longitude);
};
function onError(error) {
alert('code: ' + error.code + '\n' +
'message: ' + error.message + '\n');
}
navigator.geolocation.getCurrentPosition(onSuccess, onError);
/pre
this assumes you have two labels named 'lat' and 'lng'.
This is not from a browser. Uploading a video.
Please try the two options I mentioned above to try and figure out this problem.
GPS works fine when I'm not using services and mapping.
But it doesn't answer the question what is wrong.
I also don't know how to update my storage variables and fields on the screen so that the service can get the data.
Hello Mike,
Do you need further assistance here?
If so, please show us what you have tried and what does not work.