added placeholders for notifee package

This commit is contained in:
Nouman Tahir 2022-10-20 13:38:44 +05:00
parent 154339538c
commit 3d99d0e1c3

View File

@ -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);