The android_delivery_priority
parameter influences when your notification is delivered by the push service (like Firebase Cloud Messaging - FCM), especially when an Android device is in a power-saving mode (such as Doze mode).
High
: Use this for urgent notifications that should be delivered immediately, even if the device is in a power-saving state. This increases the likelihood of prompt delivery through FCM but may consume more battery. This is particularly relevant for data-only messages or messages that need to trigger background processing promptly.Normal
(Default): Notifications are delivered promptly under normal conditions. However, if the device is in Doze mode, delivery by FCM might be deferred to a periodic maintenance window to save battery.
This parameter is primarily about the timing of message delivery to the device by the underlying push service. It is distinct from the user-facing "importance" or "priority" of a notification once it arrives on the device (which is controlled by Importance level
and Notification Channels on Android 8.0+).
Note: While android_delivery_priority: High
helps in getting the message to the device promptly, the actual display and interruption behavior are still governed by the app's notification permissions and the settings of the relevant Notification Channel (on Android 8.0+).
Comments
0 comments
Please sign in to leave a comment.