skip to Main Content

Currently, I am developing a Flutter mobile app and implementing firebase push notifications in the app. Then I was wondering whether these notifications are charged in the case they fail to be delivered. For example, in the case the user deleted the app then his Firebase token is no longer valid, and therefore sending push notifications to that invalid token will fail. In this case, will I be charged for this failed notification? Thanks in advance.

I did some research about this but could not get a clear answer.

2

Answers


  1. If you are using cloud messaging, you can detect invalid token responses and safely delete your record of this token, since it will never again be valid.

    Here is the complete documentation to do so:
    Detect invalid token responses from the FCM backend

    Login or Signup to reply.
  2. Then I was wondering whether these notifications are charged in case they fail to be delivered.

    You won’t be charged with anything, no matter if a notification arrives to the user or fails for any reason.

    For example, in the case the user deleted the app then his Firebase token is no longer valid, and therefore sending push notifications to that invalid token will fail. In this case, will I be charged for this failed notification?

    No, you won’t. As @FrankvanPuffelen mentioned in his comment, the Firebase Cloud Messaging service is free of charge. There is nothing that you should pay.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search