01/10/2025 10:53:00
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.
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:
Copyright © 2025 MSDK.
All rights reserved.
All rights reserved.