Visitar URL original
No way to check "DontAskAgain" without prompting · Issue #20 · Over17/UnityAndroidPermissions · GitHub
Skip to content

No way to check "DontAskAgain" without prompting #20

Open

Description

@FvanHoof-Talespin

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?

Activity

  1. Over17 commented on Nov 5, 2024

    @Over17
    Owner

    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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions