|
@@ -45,7 +45,7 @@ export const PushNotificationProvider = ({ children }: { children: React.ReactNo
|
|
if (appState.match(/inactive|background/) && nextAppState === 'active' && isSubscribed) {
|
|
if (appState.match(/inactive|background/) && nextAppState === 'active' && isSubscribed) {
|
|
Notifications.getBadgeCountAsync().then((badgeCount) => {
|
|
Notifications.getBadgeCountAsync().then((badgeCount) => {
|
|
if (badgeCount > 0) {
|
|
if (badgeCount > 0) {
|
|
- Notifications.setBadgeCountAsync(-1);
|
|
|
|
|
|
+ Notifications.setBadgeCountAsync(0);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
Notifications.getPresentedNotificationsAsync().then((notifications) => {
|
|
Notifications.getPresentedNotificationsAsync().then((notifications) => {
|
|
@@ -284,7 +284,7 @@ export const PushNotificationProvider = ({ children }: { children: React.ReactNo
|
|
|
|
|
|
Notifications.getBadgeCountAsync().then((badgeCount) => {
|
|
Notifications.getBadgeCountAsync().then((badgeCount) => {
|
|
if (badgeCount > 0) {
|
|
if (badgeCount > 0) {
|
|
- Notifications.setBadgeCountAsync(-1);
|
|
|
|
|
|
+ Notifications.setBadgeCountAsync(0);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|