Unity-Technologies / com.unity.mobile.notifications

Mobile Notifications Package
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.1/manual/index.html
Other
132 stars 42 forks source link

Automatic permission request on Android 13. #267

Closed makcimbx closed 1 year ago

makcimbx commented 1 year ago

After reading the documentation, it is clear that notification permissions for Android 13 must be obtained through PermissionRequest, but at the moment even if you do nothing with PermissionRequest, the app will still ask for permission to send notifications on Android 13 during startup. Accordingly, the question is, can we control this automatic permission request like on iOS through the settings in Unity, or not?

Mobile notifications 2.1.1 Unity 2021.3.16f1

aurimasc commented 1 year ago

This is not notifications package. If your target sdk is less than 13, OS will ask for permission automatically. To control this, you have to target sdk 13 or higher.