Firebase FCM AndroidConfigV2 replaces message priorities with intent-driven types
Brief
Firebase released FCM AndroidConfigV2, replacing legacy priority settings with intent-driven message types and new client callbacks for Android push notifications.
What changed
- Legacy priority values normal vs high are deprecated, replaced by message intent: BackgroundSync for non-urgent data updates, cache refreshes and state updates, and RemoteNotification for urgent, user-visible notifications.
- RemoteNotification bypasses Doze restrictions and battery batching delays; BackgroundSync delivery is batched and scheduled to optimize battery health.
- In HTTP v1 requests, the legacy android configuration block is replaced by android_v2; TTL, collapse_key and restricted_package_name remain configurable.
- Both payload types continue to support up to 4KB of data.
Client-side callbacks
- onMessageReceived is replaced by onNotificationReceived(RemoteMessage), which must return a NotificationResponse object, and onBackgroundSyncReceived(RemoteMessage) for non-urgent data work; onDeletedMessages remains for queue cleanups.
- With mutable_content set to false (default), GMS Core immediately renders the server-provided payload to the status bar without waking app background code.
- With mutable_content true, GMS Core binds to the app and calls onNotificationReceived so the app can modify the notification before display, using NotificationResponse.create(), NotificationResponse.suppress(), or FcmNotificationManager postNow()/cancelNow().
- A server-defined fallback payload inside remote_notification is used if the app callback times out, crashes or exceeds suppression limits.
Limits and migration
- When mutable_content is enabled, onNotificationReceived must return a valid NotificationResponse within 20 seconds, otherwise GMS Core posts the default server fallback notification.
- Apps can suppress up to 25% of background notification traffic before original notifications are automatically posted; foreground suppressions and apps with unrestricted background permissions are exempt.
- Both parameters may change before General Availability.
- Server and client upgrades are backward compatible and independent: FCM translates ACv2 payloads for older client SDKs, so backend teams can ship first.
- BackgroundSync payloads should be combined with a collapse_key so offline devices receive only the most recent data payload on wakeup.
Generated by AI from the original article. Check the source for full details.