Android API 12 introduces some new permissions requirements. Here is a page describing them:
The docs say they are runtime permissions that need to be asked for by the app.
I am using the Permissions class right now to ask for fine location. Does anyone know if / when Unity will add support for these? Can I just pass in the INT value for the permission even if Unity doesn’t know about it?
As far as I can see, the predefined permissions like “Camera” etc. are just string constants, not an enum. So Permission.RequestPermission accepts any permission as a string. As you can find in the generated meta data of Permission.cs:
For permissions which Unity has not predefined you may also manually provide the constant value obtained from the Android documentation here: https:developer.android.comguidetopicspermissionsoverview#permission-groups such as “android.permission.READ_CONTACTS”.