Do not collapse four different outcomes into “sent”

A push request can be accepted by a provider and still fail to appear as a notification the person sees. The provider response, a device delivery signal, operating-system presentation, and app code handling are separate events with different evidence. Start by naming which outcome the report describes.

StageEvidence to collectWhat it does not prove
Application serverRecipient eligibility, payload, environment, provider responseThat the provider delivered or displayed it
FCM or APNsRequest identifier, response status, error categoryThat the device was online or showed an alert
Device and OSApp version, OS, permission and notification settingsThat app code processed the payload
App handlingForeground/background state and handler outcomeThat the person read or acted on it

Give each test message a traceable, non-sensitive identifier

Log a generated event ID, the app release, provider environment, message type, send time, and provider response. Keep registration tokens out of ordinary logs and support tickets; they are routing identifiers and should be handled like credentials. Use the event ID to correlate server-side work with a test device log.

For Firebase Cloud Messaging, use the delivery reports and data tools appropriate to the app and message type. Apple Push Notification service has its own provider response and token environment. Do not mix sandbox and production credentials or interpret one provider status as a cross-platform delivery receipt.

Check message type and app state before changing retries

Notification messages and data messages have different handling paths. App code can behave differently in the foreground, background, or terminated state, and the operating system can suppress or alter visible presentation based on permissions and user settings. Reproduce the exact state from the report instead of testing only with the app open.

An aggressive retry loop can produce duplicate user-visible alerts when the original request eventually arrives. Give events stable identifiers, make app-side processing safe to repeat, and distinguish a retryable provider error from an invalid or expired token.

Use a small matrix to narrow the failure

  • Send one controlled message to a development device with a known app version.
  • Repeat with the app foregrounded and backgrounded, recording the handler path.
  • Check the OS notification permission and channel or focus settings on the same device.
  • Compare the server request and provider response with the device-side event log.
  • Retest with a fresh registration token if the provider reports it as invalid.

A matrix is more diagnostic than repeatedly pressing a console button because it varies one condition at a time and preserves evidence. For production reports, ask for the event ID, approximate time, app version, device OS, and app state; do not ask users to send their push token.

Define success in the metric you can actually observe

Provider acceptance is a useful server metric, not a measure of notification visibility or user attention. Delivery analytics have provider-, platform-, and message-type limitations. Report the exact event measured and avoid calling a send response an install, a display, or a read receipt.

Official references