Writing
Mobile English

Push Notifications on Aggressive Android OEMs: Why Your Message Never Arrived

Doze mode, OEM battery killers, and the difference between data and notification messages - making FCM reliable on the phones people actually own.

  • Published
  • 1 min read

“User says they never got the notification” is the most common mobile bug report in Indonesia - because the phones people actually own (Xiaomi, Oppo, Vivo, Realme) ship battery managers that kill background processes far beyond stock Android.

Know which message type you are sending

FCM has two shapes, and they behave differently under Doze:

  • Notification messages are rendered by the system. They survive the process being killed (not a force-stop, which some OEM managers do). Use them for anything the user must see.
  • Data messages wake your code - which OEM killers love to prevent. Everything critical about them must tolerate never arriving.
json
{
  "message": {
    "notification": { "title": "Order confirmed", "body": "..." },
    "android": { "priority": "HIGH" },
    "data": { "order_id": "8912" }
  }
}

Send both: the notification block guarantees display; the data block enriches the tap.

Design for the kill

  • High priority only for genuinely time-sensitive messages - Google throttles abusers.
  • On app open, reconcile from the server. Push is a hint, not a transport. The badge count comes from an API, not from counting deliveries.
  • Detect problem OEMs and show a one-time “allow background activity” walkthrough. Users accept it when you explain why.

Reliable push is not one API call. It is a delivery system with push as its optimistic path.