05/15/2024 15:19:45

Problem description

When the Unity engine APP is started, a permission application prompt will pop up. It is hoped that the permission application prompt will pop up when the corresponding capability is used.

Image Description

Solution

The default behavior of the Unity engine. By default, a prompt box will pop up for the application for some sensitive permissions when APP is started. You can add configuration in AndroidManifest.xml to turn off this behavior. The configuration does not affect the dynamic application of permissions through the code. The specific configuration is as follows:

<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" />`

Remarks

The declaration can be written between <application> Tag, as follows:

Image Description



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""