Skip to content

Commit

Permalink
added placeholders for notifee package
Browse files Browse the repository at this point in the history
  • Loading branch information
noumantahir committed Oct 20, 2022
1 parent 1543395 commit 3d99d0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/screens/application/container/applicationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3d99d0e

Please sign in to comment.