Skip to content

feat: getBadgeCount and setBadgeCount methods for notifications #228

Open
@rossholdway

Description

@rossholdway

Feature Request

Describe the Feature Request

iOS (and some Android) notification payloads often contain the number of unread notifications, however currently this value can't be used. Support setting and getting the notification badge count by implementing getBadgeCount and setBadgeCount methods.

I notice this feature has been mentioned in other issues too (#1301 ionic-team/capacitor#837 etc). It is also currently a supported feature of the phonegap push plugin. See push.setApplicationIconBadgeNumber and push.getApplicationIconBadgeNumber at https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/API.md

Platform Support Requested

  • Android
  • iOS
  • Electron
  • Web

Describe Preferred Solution

Add getBadgeCount and setBadgeCount methods

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions