[ad_1]
I’m engaged on icon badges utilizing APNS. It seems to be like I can ship down the the badge depend within the notification, however with the intention to ship down the appropriate badge depend and reset it, I must hold monitor of every customers notification counts on the backend. I’m simply confirming that is appropriate. I’ve seen it requested earlier than, however wished to verify earlier than I implement. I’m utilizing Tags in Azure Notification Hubs, which permits me to ship notifications to teams of customers, however with the intention to monitor badge counts (what number of “issues” have I not seen) I nonetheless want at the very least a report for every consumer (may very well be a report for every notification to every consumer which is extra granular, however at the very least every consumer).
I suppose you solely want a report for each consumer who has opted into that particular notification kind (accounting for >1 forms of notifications). I suppose I must ship notifications on a consumer by consumer foundation and verify a desk which retains a report of the badge depend for every consumer + notification kind (instance: inbox merchandise and alert) and increment no matter is in there with an replace and choose the worth to incorporate within the json “badge” worth. Is that how others are doing it?
{
"aps":
{
"alert":"Take a look at notification",
"alert kind":"inbox",
"badge":9
}
}
I suppose I assumed this may be a shopper aspect factor or constructed into notifications in some way. Is that this how others are doing it? It is onerous for me to think about all chat, information, and so forth. apps do it this manner. I do need an general icon badge depend which is an combination of the badge counts for two tabItems within the TabView.
[ad_2]
