You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to add badge number when receive message from server but it don't add badge number until I tapped on notification.
How to add badge number when device receive message?
Help me please.
I use setBadgeNumber and onNotificationOpen
************************ My code ************************
this.firebase.onNotificationOpen().subscribe((res) => {
this.firebase.setBadgeNumber(1)
if(res.tap){
console.log("Received in background");
} else {
console.log("Received in foreground");
}
}, (err) => console.log(err) )
The text was updated successfully, but these errors were encountered:
@remisture Yes. I try to set badge number (badge = 1). I send it but if I receive message and do not open notification or application when I send message again badge number on my application still get 1
I try to add badge number when receive message from server but it don't add badge number until I tapped on notification.
How to add badge number when device receive message?
Help me please.
************************ My code ************************
this.firebase.onNotificationOpen().subscribe((res) => {
this.firebase.setBadgeNumber(1)
if(res.tap){
console.log("Received in background");
} else {
console.log("Received in foreground");
}
}, (err) => console.log(err) )
The text was updated successfully, but these errors were encountered: