I use the toolkit trigger.io to develop my apps, now I need the current position of a user. Therefore, I’d like to use the forge.geolocation.getCurrentPosition method, unfortunately it does not work.
I call it in my pageinit event, like so:
$(document).bind('pageinit',function(event){
forge.geolocation.getCurrentPosition(function(position) {
alert("ok");
}, function(error) {
alert("error");
});
});
Unfortunately, I always get an error message.
Any help is very appreciated.
Thanks,
enne
So the thing is that getCurrentPosition() works on a real device, but not on the emulator.