1.0.6 • Published 2 years ago

capacitor-notification-badge v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Capacitor Notification Badge

Description

Set the app icon's notification badge count.

Installation

Capacitor 2

  • npm i capacitor-notification-badge@0.0.1

Capacitor 3

  • npm i capacitor-notification-badge

Usage

import { Plugins } from '@capacitor/core';

const { NotificationBadge } = Plugins;

NotificationBadge.setBadgeCount({
  count: 2,
}).then(
  () => {},
  error => {
    console.log(error);
  },
);

Methods

MethodDefaultTypeDescription
setBadgeCount(options: NotificationBadgeOptions)Promise<any>Sets the badge count

Interfaces

NotificationBadgeOptions

PropertiesDefaultTypeDescription
countnumberNumber to set on the app icon's badge
1.0.6

2 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago