Closed dcxn closed 2 years ago
he all, for requestCameraRollAuthorization with limited will be return denied_always, https://github.com/dpa99c/cordova-diagnostic-plugin/blob/7.1.0/www/ios/diagnostic.camera.js#L226 but in documentation is limited , see https://github.com/dpa99c/cordova-diagnostic-plugin#example-usage-54
olso accessLevel as string is required on iOS
Fix released in cordova.plugins.diagnostic@7.1.1
Bug report
CHECKLIST
[x] I have read the issue reporting guidelines
[x] I confirm this is a suspected bug or issue that will affect other users
[x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[x] I have read the documentation thoroughly and it does not help solve my issue.
[x] I have checked that no similar issues (open or closed) already exist.
Current behavior:
As mentioned in this closed issue, on a fresh install of the app on iOS, when the user gets prompted to give access to camera roll and chooses
Select photos...
option and once you close the native popup where you select the photos, the plugin returnsdenied_always
as permission status. Only on the second time of trying to select a photo, it will return the proper permissionlimited
.Expected behavior:
Plugin returns
limited
status when the user chooses to giveSelect photos
permission on clean install.Steps to reproduce:
Use the short code snippet, choose
Select photos
as permission.Environment information
cordova -v
=v11.0.0
"cordova-android": "^11.0.0",
"cordova-ios": "^6.2.0",
"cordova.plugins.diagnostic": "^7.1.0",
"cordova-plugin-camera": "^6.0.0",
Runtime issue
Thank you