dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
570 stars 457 forks source link

IOS | Questioning automatic badge increment #835

Open JeremyMrn opened 7 months ago

JeremyMrn commented 7 months ago

I have an application and a server which notifies the application, I notify using topics and I want to have the notification badge which corresponds to my number of notifications still pending.

The problem is that I notify topics to which people subscribe. When I notify a topic, I don't know the devices that will receive the notification nor the number of notifications not yet seen by the device, so I cannot pass it as a payload parameter.

What should I do in this case? We need a system like Android which automatically increments the badge on the number of pending notifications.

Does this exist? What is the solution ?

abuttlemur commented 6 months ago

Would this work?, just increment that number