Fix two bugs related to iOS remote notification presentation:
Remote presentation options set in settings are only used if permission is requested on app startup, not if manually requested by user at later point, notification does not show up as a result when delivered to foreground app
If callback for remote notification receive is registered, notification is not shown when app is in the foreground
One small feature added while fixing this: adding showInForeground key to remote notification now allows to show it when received with app in foreground (just like for local notifications).
Both fixes verified by developer:
requesting permission at later point in the app still shows remote notification sent to foreground app
registering callback for remote notification does not alter the behavior except that now notification is shown based on showInForeground flag on it (without callback it is always shown).
https://jira.unity3d.com/browse/MNB-60 https://jira.unity3d.com/browse/MNB-61
Fix two bugs related to iOS remote notification presentation:
One small feature added while fixing this: adding showInForeground key to remote notification now allows to show it when received with app in foreground (just like for local notifications).
Both fixes verified by developer: