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
Describe the bug
When you refuse the permission for camera-usage, the app crashed, when you try to scan.
This is only at ios. Android asks each time for permission and refuse camera-usage, if it have to.
Additionally, it is still possible to scan a document in that moment, you refuse it.
To Reproduce
Steps to reproduce the behavior:
Refuse Camera permissions
Try to scan
Expected behavior
Like Android, ask again for granting permissions and deny, if it have to.
Smartphone (please complete the following information): (Tested ones)
Device: [ iPhone6, iPhone 7]
OS: [iOS 12.4.4, iOS 13.5.1]
Version [4.2.5]
Cordova Version [9.0.0]
Cordova Platform [ios]
Cordova Platform Version [5.1.1]
Additional context
Xcode Crash Error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureSession addInput:] Can't add a nil AVCaptureInput'
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue. By default iOS won't let you ask the user again for permission. Its a one time thing. If the user denies permission, they will have to manually go in to settings and change the permission.
But you are right the scan shouldn't start if the permission was denied. I am not sure when I will be able to take a look at this issue but for now as a workaround you could use the diagnostic cordova plugin to request for permission and then once user has given permission run the scan command
Describe the bug
When you refuse the permission for camera-usage, the app crashed, when you try to scan.
This is only at ios. Android asks each time for permission and refuse camera-usage, if it have to.
Additionally, it is still possible to scan a document in that moment, you refuse it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Like Android, ask again for granting permissions and deny, if it have to.
Smartphone (please complete the following information): (Tested ones)
Additional context
Xcode Crash Error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVCaptureSession addInput:] Can't add a nil AVCaptureInput'
The text was updated successfully, but these errors were encountered: