Closed PeterStaev closed 7 months ago
Actually testing for Andoird 11 it also fails with the same error. On Android 9 it works fine though.
According to this: https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE the external storage permission is effective only up to and including Android 10.
Also according to this: https://developer.android.com/guide/topics/media/camera the WRITE_EXTERNAL_STORAGE
should be requested only if targeting API29 or lower.
So probably the method should be changed to check for API 29 and not 33.
I'm having the following code:
This works fine on Android 13 but not on Android 12 & 11. When the code is executed I correctly get a prompt to allow camera access. When I allow it the
requestPermissions()
fails with the following error:May be this function should be changed to check for API30 and not API33? https://github.com/NativeScript/plugins/blob/91d0b298ba00c42731346b2291e668c6bc43c66e/packages/camera/index.android.ts#L171-L173C2