Search code examples
firebasefirebase-cloud-messaging

How to achieve time-sensitive flag in APNS JSON output via FCM?


iOS distinguishes between messages by UNNotificationInterruptionLevel. I would like to achieve that messages sent via FCM have the time-sensitive interruption-level.

Is this equivalent to just sending messages in FCM with high priority? Unfortunately it's not super clear to me from looking at the docs.


Solution

  • The interruption level is automatically handled by system, not by FCM. That's different than the high priority.

    You should be able to use it as it is by following Apple's documentation. FCM supports passing down the interruption-level in the payload.