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

Android notification status after app restart #312

Closed aurimasc closed 9 months ago

aurimasc commented 9 months ago

https://jira.unity3d.com/browse/MNB-78 Fix incorrect notification status being reported on app restart. When app starts, we load all scheduled notifications to a cached list, but there was no check for expiration, so if notification arrived and was dismissed with app killed and restarted afterwards, we would report notification as scheduled afterwards.

Existing test was updated to cover this case. Most basic scenarios also covered by existing tests. Also tried the repro project from the original users report that the issue no longer reproduces. QA: