No way to check "DontAskAgain" without prompting
Even if the user hasn't previously been prompted, when checking a permissions, the returnvalue is "Denied" instead of "ShouldAsk".
When checking the class in the aar, it looks like RequestPermission does check the "shouldShowPermissionDialog"-value (but it might be hard-coded in there in the C#?).
Is there any way to check if a User can still be prompted for a permission, without actually prompting them?
Please keep in mind the source code here hasn't been updated for 6 years. Since then, Unity introduced own permission system, a new type of activity (GameActivity), and Android requirements have evolved a lot too.
Even if the user hasn't previously been prompted, when checking a permissions, the returnvalue is "Denied" instead of "ShouldAsk".
Did you declare the permission you are asking for in the manifest?
When checking the class in the aar, it looks like RequestPermission does check the "shouldShowPermissionDialog"-value (but it might be hard-coded in there in the C#?). Is there any way to check if a User can still be prompted for a permission, without actually prompting them?
Could you explain? - I don't follow the code references, and the last question is curious. :)