I saw this blog post yesterday which got me thinking about this matter:
https://coronalabs.com/blog/2016/02/23/breaking-change-android-6-and-device-ids/
I don’t have a Marshmallow device to hand to test this, so I’m hoping someone out there already knows the answer to this.
Let’s ay my app uses the camera. What would happen if I tried to use the camera in my app WITHOUT calling something like this:
local permissionOptions = { appPermission = "android.permission.CAMERA", urgency = "Critical", listener = appPermissionsListener, rationaleTitle = "Camera required", rationaleDescription = "This app needs the camera so you can take your picture", settingsRedirectTitle = "Alert", settingsRedirectDescription = "Without the ability to access your device's camera, the app can't function properly. Please grant camera access within Settings." } native.showPopup( "requestAppPermission", permissionOptions )
Will Android detect that I’m trying to use a feature which has not had permissions requested and automatically bring up a permission request popup? Or will it just fail to use the camera?
Also, what happens if the user rejects the permission but then changes their mind? Is there a way to manually go and turn on the permission, or do we need to put extra options in our app to allow them to do this (e.g. in a settings screen).