Compile sample project “Camera” from Corona simulator to generate the apk.
Then download the apk to device for running. When trigger the camera function, following error coming out from the screen:
09-12 10:24:08.708 18690 18714 I Corona : Lacking camera permission!
09-12 10:24:08.710 18690 18690 I Corona : ERROR: Camera tried to request access to a permission group without having any permissions from that group in build.settings/AndroidManifest.xml!
09-12 10:24:08.710 18690 18690 I Corona :
09-12 10:24:08.710 18690 18690 I Corona : Before requesting access, please add a permission from the android.permission-group.CAMERA permission group!
The same apk can be runned in Google Pixel 2 (Android 9), but not Android 10.
At least for me, the usesPermission strings are not getting copied over from build.settings to the androidmanifest. Was this maybe a bug introduced in a daily build?
Can you confirm the example code is working at Android 10 device?
If yes, then I will solve this problem by myself.
P.S. I already tried the example code, the apk file generated by example code is only working at Android 9 or below device , but it will prompt the error in Android 10.
I looked into it further and figured out that build.settings uses permissions no longer get processed and put into the manifest for Native. I had to manually add them. This was not the case before, but they must have made some changes recently and the documents support this. This was my issue Rob, thanks.