1 thought on “Get/Set badge number at background.

  1. As to update badge number in Android, you need to set code manually.
    firebase.notifications().setBadge(3);

    For IOS, set badge in payload can be done.

    In Android, if the app is closed or in background, is there a method which will be called when the notification arrives (not when tapped)? I ask this in order to place this function:

    firebase.notifications().setBadge(3);

Comments are closed.