You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to ask to see if I have permission to use the location for an android app, with the following code:
Diagnostic.requestLocationAuthorization(Diagnostic.locationAuthorizationMode.ALWAYS).then(status => { });
But I am having the following error in the console:
cordova.js:314 Uncaught TypeError: successCallback is not a function(…)onSuccess @ diagnostic.js:572onSuccess @ diagnostic.js:379callbackFromNative @ cordova.js:293(anonymous function) @ VM87:1
Could you help me?
The text was updated successfully, but these errors were encountered:
The ionic-native wrapper is invoking the underlying requestLocationAuthorization() plugin function with parameters in the wrong order: the plugin function expects to be passed the arguments (successCallback, errorCallback, mode) but the ionic-native wrapper is passing (mode, successCallback, errorCallback) which is causing Cordova to throw the observed error.
ramonornela
added a commit
to ramonornela/ionic-native
that referenced
this issue
Nov 8, 2016
Hi, I am trying to ask to see if I have permission to use the location for an android app, with the following code:
Diagnostic.requestLocationAuthorization(Diagnostic.locationAuthorizationMode.ALWAYS).then(status => { });
But I am having the following error in the console:
Could you help me?
The text was updated successfully, but these errors were encountered: