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

iOS notification content update #251

Closed aurimasc closed 1 year ago

aurimasc commented 1 year ago

https://jira.unity3d.com/browse/MNB-27 Adds two new properties to iOSNotification: InterruptionLevel and RelevanceScore.

Both of these have been introduced in iOS 15, on lower versions they should be ignored. InterruptionLevel determines if/when notification causes alert (see Apple docs). RelevanceScore works when sending multiple notifications and collapsing them shows the one with highest score. Apple docs are very non-descriptive for this, I've tried using the same thread id, there's also category that I haven't tried.

Testing required: