Unity-Technologies / com.unity.mobile.notifications

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

Backport Android 12+ fixes to 1.4.x series #225

Closed aurimasc closed 1 year ago

aurimasc commented 1 year ago

We still support 1.4.x notification version as it is compatible with API levels that are minimum on 2020.3. The changes backported are for exact scheduling and notification permission.

To keep changes to minimum, not doing anything related to scheduling related permissions, just document that one of the two is required to support exact scheduling on Android 12+. User has to add it manually. Add POST_NOTIFICATIONS to manifest. Not adding permission request API, just documenting how to request it.

QA: the only real change here is that Android 13 devices work fine with target SDK less than 33 and with 33 (in the later case one has to manually request the permission, test project has button for that).