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

NRE when update mobile notifications package from 2.0.2 to 2.1.0 iOS #242

Closed IgorGalimski closed 1 year ago

IgorGalimski commented 1 year ago

In 2.1.0 you changed the way to store UtcTime - now you have it in a dict 2.1.0

Screenshot 2022-12-15 at 16 09 35

But before it was just a property in iOSNotification class 2.0.2

Screenshot 2022-12-15 at 16 07 04

So, when we update mobile notification package - we faced a NRE, because you don't have a check for "OriginalUtc" key. It happened when users had previous verison (2.0.2) and update to the latest one (2.1.0). Next opening won't throw the NRE because the value for the key is gonna be added:

Screenshot 2022-12-15 at 16 20 00
aurimasc commented 1 year ago

Will be fixed in next release.