UNDERTANDING WHY PUSH NOTIFICATION FAILS

Push notifications may fail to reach customers for several reasons, even when a campaign or broadcast appears to have been sent successfully.

For a push notification to reach a customer, three things must be in place:

  1. The customer's app must have a valid Firebase Cloud Messaging (FCM) registration token.
  2. Bunce must have the correct and most recent token associated with that customer.
  3. The notification must be sent using the Firebase project associated with the customer's app.

When any of these conditions are not met, notification delivery may fail or the customer may not receive the notification.

This guide explains four common reasons push notifications fail, their possible causes, and what to check when troubleshooting them.

1. The Customer Has Disabled Notifications

Customers can disable notifications directly from their device settings.

When this happens, the device may stop displaying notifications even though Firebase still accepts the notification request.

What happens?

  • Firebase may accept the notification successfully.
  • Bunce may not record a delivery failure.
  • The customer does not see the notification on their device.

This means a notification can appear successful from the sending side without being displayed to the customer.

How to resolve it

The app development team should:

  1. Check the customer's notification permission status within the mobile application.
  2. Report the permission status to the application's backend.
  3. Use this information to identify customers who have disabled notifications.
  4. Guide customers on how to re-enable notifications through their device settings.

Important: This issue cannot be reliably identified from the Bunce engagement export alone. Notification permission status must be monitored from the application side.

2. The Customer Has Uninstalled the App

When a customer uninstalls an application, Firebase unregisters the app instance associated with that device.

As a result, the FCM registration token previously assigned to that app instance becomes invalid.

What happens?

  • Firebase rejects subsequent notification requests sent to the invalid token.
  • The request may return UNREGISTERED (HTTP 404).
  • Bunce may continue attempting to send notifications if the outdated token has not been replaced.

If the customer reinstalls the application, Firebase generates a new registration token.

However, Bunce will not automatically receive this new token unless the application sends it to the backend and the backend updates the customer's token in Bunce.

How to resolve it

The app development team should:

  1. Implement token registration whenever the application is installed or initialized.
  2. Send the newly generated FCM token to the application's backend.
  3. Ensure the backend updates the customer's registration token in Bunce.
  4. Remove invalid tokens when Firebase returns an UNREGISTERED response.

Important: Reinstalling an application does not automatically update the token stored in Bunce. The application must communicate the new token to the backend for the update to take effect.

3. The Token Has Become Stale or Expired

An FCM registration token can become stale when an application instance has not connected to Firebase Cloud Messaging for an extended period.

According to Firebase, an app instance is considered stale when it has not connected to FCM for more than one month.

What happens?

  • The customer may no longer actively use the application.
  • Firebase may still have the old token registered.
  • Notifications sent to stale tokens are unlikely to be delivered.

For iOS devices, Firebase relies on Apple's push notification service. Unlike Android, iOS registration tokens do not have a fixed 270-day expiration period. Firebase therefore recommends proactively removing stale iOS tokens.

Common reasons tokens become stale include:

  • Customers no longer opening the application.
  • Devices being lost or damaged.
  • Customers abandoning or no longer using the application.

An application update does not automatically invalidate an FCM token. However, delivery can be affected if the updated application fails to register for notifications or fails to communicate its refreshed token to the backend.

How to resolve it

Firebase recommends the following token management practices:

  1. Send the customer's current FCM token to the backend whenever the application starts.
  2. Include a timestamp indicating when the token was last refreshed.
  3. Refresh and validate registration tokens approximately once a month.
  4. Remove tokens that return UNREGISTERED or confirmed INVALID_ARGUMENT responses.
  5. Maintain an updated record of each customer's active registration token.

Important: Token staleness is generally associated with application inactivity, not simply because the application has been updated.

4. No Token or an Incorrect Token Was Provided

Bunce requires a valid FCM registration token to send a push notification to a customer.

If no token is available or the supplied token is incorrect, the notification cannot be delivered successfully.

There are several scenarios to consider.

A. No token found

If the application has not supplied an FCM registration token for a customer, Bunce cannot initiate a push notification to that customer.

What happens?

Bunce records the message as:

No token found

How to resolve it:

  • Confirm that the application generates an FCM registration token.
  • Ensure the token is sent to the application's backend.
  • Verify that the backend successfully passes the token to Bunce.
  • Confirm that the token is associated with the correct customer.

B. Malformed or truncated token

An FCM token must be supplied exactly as generated by Firebase.

If the token is incomplete, modified, or contains additional characters, Firebase may reject the request.

Possible error:

INVALID_ARGUMENT (HTTP 400)

How to resolve it:

  • Confirm that the complete token is being captured.
  • Check that the token is not truncated during storage or transmission.
  • Ensure no additional characters or formatting changes are introduced.
  • Compare the token stored in Bunce with the original token generated by the application.

C. Token belongs to a different Firebase project

FCM registration tokens are associated with the Firebase project under which the application was registered.

If a token generated under one Firebase project is used with another project's credentials, Firebase rejects the request.

Possible errors:

  • SENDER_ID_MISMATCH (HTTP 403)
  • Mismatched credentials error in the Firebase Admin SDK.

How to resolve it:

  • Confirm which Firebase project generated the token.
  • Verify that Bunce is configured with the correct Firebase project credentials.
  • Ensure that the application and the Firebase configuration used for sending notifications belong to the same project.

D. Missing or invalid iOS credentials

For iOS applications, Firebase requires valid Apple Push Notification service (APNs) credentials to deliver notifications.

If the APNs authentication key or certificate configured in Firebase is missing, invalid, or incorrectly configured, iOS notification delivery may fail.

Possible error:

THIRD_PARTY_AUTH_ERROR (HTTP 401)

How to resolve it:

  • Verify that the APNs authentication key or certificate is configured in Firebase.
  • Confirm that the credentials are valid and have not expired or been revoked.
  • Check that the correct Apple Developer account credentials are associated with the Firebase project.
  • Test notification delivery after updating the credentials.

Important: Missing or invalid APNs credentials can affect all iOS notification sends associated with the affected Firebase configuration, not just one customer.

Troubleshooting Summary

Use the table below as a quick reference when investigating push notification failures.

Issue Possible error or outcome Recommended action
Customer disabled Firebase accepts the request, but Check notification permissions in the
notifications notification is not displayed app
Customer uninstalled the app UNREGISTERED (404) Remove the invalid token and update it after reinstalling
Token is stale Delivery unlikely Refresh and validate tokens regularly
No token provided No token found Confirm token registration and synchronization
Malformed or truncated token INVALID_ARGUMENT (400) Verify the token's integrity
Wrong Firebase project SENDER_ID_MISMATCH (403) Match the token to the correct Firebase project
Missing or invalid iOS credentials THIRD_PARTY_AUTH_ERROR (401) Verify APNs credentials in Firebase

Best Practices for Preventing Push Notification Failures

To minimize push notification failures, application development teams should:

  1. Keep tokens updated: Send the current FCM registration token to the backend whenever the app starts.
  2. Track token activity: Store timestamps to identify inactive or stale tokens.
  3. Remove invalid tokens: Delete tokens that Firebase confirms are no longer registered.
  4. Monitor notification permissions: Track whether customers have enabled or disabled notifications.
  5. Verify Firebase configurations: Ensure the correct Firebase project credentials are used for each application.
  6. Maintain valid APNs credentials: Regularly check the Apple push notification configuration for iOS applications.
  7. Synchronize token updates: Ensure newly generated tokens are communicated to Bunce promptly.


Frequently Asked Questions

1. Why does Bunce show that a push notification was sent when the customer did not receive it?

Firebase may accept a notification request even when the customer has disabled notifications on their device. In such cases, the request may not return an error, even though the notification is not displayed.

2. Does updating the mobile application automatically invalidate the FCM token?

No. Updating an application does not automatically invalidate its token. However, the app must continue registering for notifications and synchronizing its token with the backend.

3. What happens when a customer reinstalls the application?

Firebase may generate a new registration token. The application must send this token to its backend so that the customer's existing token can be updated in Bunce.

4. Can Bunce send notifications without an FCM registration token?

No. A valid registration token is required to target a customer's device. If no token is available, Bunce records the issue as No token found.

5. Why do all iOS push notifications fail?

One possible cause is missing or invalid APNs credentials in the Firebase project. Check the Apple push notification configuration if iOS sends consistently return THIRD_PARTY_AUTH_ERROR.

Additional Resources

For more information about Firebase Cloud Messaging and registration token management, refer to the official Firebase documentation:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us