Meteor-Community-Packages / Meteor-Community-Packages/raix-push

How to send badge count for each individual client ?

Open
#300 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

When notification arrives for an app in background, the badge is displayed and the count is what is sent from server.
Push.send({
badge: 5, //**This puts badge count 5 for all users**.
query: { // this will send to all users },
});

How do you set badge count for all individual clients ?
How about if
Push.setBadge(9);
from client api should set the badge count for that client in the raix:push database and when Push.Configure({ **badge:true**}) then
Push.send({
badge: 1, //**This should increment by 1** the badge count of the receiver as stored in the database.
query: { // this will send to all users },
});

Any idea how to set badge count individually for each client?
As such Push.setBadge(9); does nothing when app is in background.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Push.send, Push.setBadge, and Push.Configure APIs and how badge values are represented in the raix:push database. Compare client-side badge updates with background notification delivery. Done means each client can retain an individual badge count and a sent badge increment updates recipients independently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.