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
in your example the diagnostic.js
Diagnostic.requestCameraAuthorization = function(successCallback, errorCallback){
Diagnostic.requestRuntimePermission(successCallback, errorCallback, Diagnostic.runtimePermission.CAMERA);
};
is right,but when we use cordova insall the plugin the method is
Diagnostic.requestCameraAuthorization = function(successCallback, errorCallback){
function onSuccess(statuses){
successCallback(combineCameraStatuses(statuses));
}
Diagnostic.requestRuntimePermissions(onSuccess, errorCallback, [
Diagnostic.runtimePermission.READ_EXTERNAL_STORAGE
]);
};
is that paste wrong ???
The text was updated successfully, but these errors were encountered:
The current behaviour of requestCameraAuthorization() is correct in that it requests READ_EXTERNAL_STORAGE, because this is the only permission required by the current version of cordova-plugin-camera.
in your example the diagnostic.js
Diagnostic.requestCameraAuthorization = function(successCallback, errorCallback){
Diagnostic.requestRuntimePermission(successCallback, errorCallback, Diagnostic.runtimePermission.CAMERA);
};
is right,but when we use cordova insall the plugin the method is
Diagnostic.requestCameraAuthorization = function(successCallback, errorCallback){
function onSuccess(statuses){
successCallback(combineCameraStatuses(statuses));
}
Diagnostic.requestRuntimePermissions(onSuccess, errorCallback, [
Diagnostic.runtimePermission.READ_EXTERNAL_STORAGE
]);
};
is that paste wrong ???
The text was updated successfully, but these errors were encountered: