History log of /expo/packages/expo-notifications/build/BadgeModule.types.js (Results 1 – 2 of 2)
Revision Date Author Comments
# a706cd95 31-Aug-2020 Bartłomiej Klocek <[email protected]>

[TS] Upgrade packages to TypeScript 4.0 (#9960)


# b286d3e7 05-Mar-2020 Stanisław Chmiela <[email protected]>

[expo-notifications] Badge count module (#6869)

# Why

We want to let people set badge counter on demand.

# How

- on Android we use `ShortcutBadger`
- on iOS we use `applicationIconBadgeNum

[expo-notifications] Badge count module (#6869)

# Why

We want to let people set badge counter on demand.

# How

- on Android we use `ShortcutBadger`
- on iOS we use `applicationIconBadgeNumber`
- on web we use `badgin`

### API

```ts
getBadgeCountAsync(): Promise<number>;
```

```ts
setBadgeCountAsync(badgeCount: number, undefined | {
web?: badgin.Options
}): Promise<boolean>;
```

# Test Plan

Tested the module on iOS 13 (worked ✅), Android 7.1 (Samsung, default launcher, ��), Android 7.1 (Samsung, ADW Launcher, ✅), Android 9 (Nokia, default launcher, ��), web (worked ✅). In order to be able to work around unsupported launchers I added a simple infrastructure inside `NewNotifications.js` test suite to skip tests on unsupported devices.

show more ...