Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the CameraAuthorization is wrong #44

Closed
wzhsh90 opened this issue Mar 29, 2016 · 3 comments
Closed

the CameraAuthorization is wrong #44

wzhsh90 opened this issue Mar 29, 2016 · 3 comments

Comments

@wzhsh90
Copy link

wzhsh90 commented Mar 29, 2016

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 ???

@dpa99c
Copy link
Owner

dpa99c commented Mar 29, 2016

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.

See the Android Camera permissions section in the documentation for more details.

@dpa99c dpa99c closed this as completed Mar 29, 2016
@wzhsh90
Copy link
Author

wzhsh90 commented Mar 29, 2016

ok,thank you I get it. the example apk requested CAMERA not READ_EXTERNAL_STORAGE

@dpa99c
Copy link
Owner

dpa99c commented Mar 29, 2016

I probably haven't rebuilt the example APK recently. I'll add it my todo list. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants