Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Android 10 runtime permission problem in sample code
Started by sam149 Sep 11 2019 06:39 PM

No replies to this topic
android 10 runtime permission
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sam149

[GLOBAL: userInfoPane.html]
sam149
  • Observer

  • 15 posts
  • Corona SDK

Corona Version 2019.3523

Android device:  Google Pixel 2 (Android 10)

 

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.

Attached Files




[topic_controls]
[/topic_controls]