Badge

Contents

The essential purpose of badge numbers is to enable an application to inform its users that it has something for them — for example, unread messages — when the application isn’t running in the foreground.

https://github.com/katzer/cordova-plugin-badge

Installation

ionic cordova plugin add cordova-plugin-badge npm install @ionic-native/badge

Supported Platforms

  • Android
  • Browser
  • iOS
  • Windows

Usage

import { Badge } from '@ionic-native/badge';

constructor(private badge: Badge) { }

...

this.badge.set(10);
this.badge.increase(1);
this.badge.clear();