Android player not asking for permissions

Hi
When I put some uses-permissions to AndroidManifest file in unity 2017.4.17 everything work fine and app asking for both WRITE_EXTERNAL_STORAGE and READ_PHONE_STATE permissions, but when I put those permissions in unity 2018.3.14 app only asking for WRITE_EXTERNAL_STORAGE permission and not asking for READ_PHONE_STATE.

Am I missing something or it is a bug?

4510429–416947–AndroidManifest.zip (1.38 KB)

In 2018.3 it’s possible to request runtime permissions when you need them. Unity does not ask for all permissions at startup time. See Unity - Manual: Requesting Permissions for more information. So based on your app logic, when you are planing to perform an operation that requires a permission, you should check if that permission is not yet granted and if it’s not granted, then request it yourself.

1 Like