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

Feature: Badge count

Open
#45 21 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Add automated badge counter.

There are two different ways of thinking about counters:
- Non-specific messages increments a "count" - this is reset on app open
- Trackable messages sets an id in the "counter" object - The app actively sets id as read

The badge is the sum of these two and is kept updated automatically.

We want an option to set a limit on the sum of unread messages, this could be set as one of three:
- Total unread limit - the limit of the sum of both counters
- Total unread of Non-specific
- Total unread of Trackable

If the limit is reached the server will skip messages for that user, at the same time we want a `force` option on send - but this should only be allowed on the server send api.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests, so first map the existing non-specific count, trackable counter object, badge updates, and server send API. Clarify the three limit modes and force behavior, then verify that badge totals update automatically, limited messages are skipped, and force is restricted to server sends.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.