I am really afraid of this for a while :( how do I need a solution that works in UNITY3D.
I need to check if the user has granted permission to access the camera of the Android device (and location on the second level).
Typically, an application launches with a request to allow these permissions at startup, but if the user denies access to the camera, I need to know and check this later.
Otherwise, the user can click the camera user interface button that I made and try to access the camera through the webcam ... and this will crash the application.
Starting with Android API 23, you cannot ignore or already grant permissions by changing the android manifest as I tried to read a few posts about this.
Thanks to everyone who has the idea to solve this problem.
source
share