https://jira.unity3d.com/browse/MNB-43
On Android 7+ notifications can be disabled per app. Right now we have AndroidNotificationCenter.UserPermissionToPost, but it only report if permission is enabled, which is Android 13+.
This PR adds one more enum value for disabled notifications and reports that on Android 7+. On even older Android versions it should be always enabled.
Note: looks like there is no such thing as disabled notifications in Android 13, it simply revokes the permission.
The Main test project prints permission status each time when gaining focus and there is a button to open settings. Please do try Android version <7 if nothing bad happens!
https://jira.unity3d.com/browse/MNB-43 On Android 7+ notifications can be disabled per app. Right now we have AndroidNotificationCenter.UserPermissionToPost, but it only report if permission is enabled, which is Android 13+. This PR adds one more enum value for disabled notifications and reports that on Android 7+. On even older Android versions it should be always enabled. Note: looks like there is no such thing as disabled notifications in Android 13, it simply revokes the permission.
The Main test project prints permission status each time when gaining focus and there is a button to open settings. Please do try Android version <7 if nothing bad happens!