mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 05:42:33 +03:00
added placeholders for notifee package
This commit is contained in:
parent
154339538c
commit
3d99d0e1c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user