diff --git a/src/screens/application/container/applicationContainer.tsx b/src/screens/application/container/applicationContainer.tsx index 1b9d1d7911..a65b29d9dc 100644 --- a/src/screens/application/container/applicationContainer.tsx +++ b/src/screens/application/container/applicationContainer.tsx @@ -9,7 +9,7 @@ import { injectIntl } from 'react-intl'; import { bindActionCreators } from 'redux'; import { isEmpty, some } from 'lodash'; import messaging from '@react-native-firebase/messaging'; -// import PushNotification from 'react-native-push-notification'; +// import notifee from '@notifee/react-native'; import VersionNumber from 'react-native-version-number'; import ReceiveSharingIntent from 'react-native-receive-sharing-intent'; @@ -444,9 +444,9 @@ class ApplicationContainer extends Component { _createPushListener = () => { (async () => await messaging().requestPermission())(); - //TODO: find a replacemenmt for badge setting - // PushNotification.setApplicationIconBadgeNumber(0); - // PushNotification.cancelAllLocalNotifications(); + //TODO: reinstall notifee after RN upgrade 0.68 + // notifee.setBadgeCount(0) + // notifee.cancelAllNotifications(); firebaseOnMessageListener = messaging().onMessage((remoteMessage) => { console.log('Notification Received: foreground', remoteMessage);