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

Reboot receiver entirely in the manifest #327

Closed aurimasc closed 1 month ago

aurimasc commented 1 month ago

https://jira.unity3d.com/browse/MNB-80 Android manifest for notifications always has a disabled receiver for rescheduling notifications after reboot. This receiver then is enabled by Java code depending on setting, value of which is also in the manifest as meta-data. While receiver can be created by code, they are then bound to context lifecycle, as such it is better to have this receiver in the manifest. This PR removes the Java code to enable the receiver and moves the logic to post processing: we will only add receiver to manifest if user has enabled reschedule on boot setting.

Developer testing:

Additional testing required: