If the current application does not have permission to access the camera , the error callback should be executed
Actual Behaviour
The camera will be turned on, indicating a problem with the camera , the success callback is always executed with data result as:
Object {cancelled: true, text: "", format: ""}
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 5.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Expected Behaviour
If the current application does not have permission to access the camera , the error callback should be executed
Actual Behaviour
The camera will be turned on, indicating a problem with the camera , the success callback is always executed with data result as: Object {cancelled: true, text: "", format: ""}
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 5.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
MI meizu
Cordova CLI version and cordova platform version
cordova 7.0.1
Plugin version
6.0.8
Sample Code that illustrates the problem
Object {cancelled: true, text: "", format: ""}
But in android 7.0 , the error callback will be executed , the error data is "Illegal access"