error getting geolocation: Failed to execute 'getCurrentPosition' on 'Geolocation': The callback provided as parameter 1 is not a function
I tried everyting. I have also duplicate the plugin and try some modifications directly on the code of it, with no luck.
I also downloaded the servoy mobile sample solution that is uploaded in github and i get the same error.
This is my code
- Code: Select all
/**
* @param {JSEvent} event
*
* @properties={typeid:24,uuid:"0B7600D8-187C-4F72-8E8B-C61037C93108"}
*/
function onDoubleClick(event) {
plugins.svyphonegapLocation.getCurrentPosition(getLocationSuccess,getLocationError)
}
/**
* @param pos
*
* @properties={typeid:24,uuid:"B7D43BF6-5C28-45F7-9812-D02AAA34F22A"}
*/
function getLocationSuccess(pos) {
plugins.webnotificationsToastr.success('Posicion - Lat: '+pos.coords.latitude+" - Long: "+pos.coords.longitude)
}
/**
* @param pos
*
* @properties={typeid:24,uuid:"965115D3-4159-4E7A-831B-ED422883A3E3"}
*/
function getLocationError(pos) {
}
Please, any kind of help or tip would help.
Thanks.