How to use the jpush-react-native.removeReceiveNotificationListener function in jpush-react-native

To help you get started, we’ve selected a few jpush-react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github syun0216 / goforeat / app / hoc / CommonHOC.js View on Github external
componentWillUnmount() {
      // AppState.removeEventListener('change');
      JPushModule.removeReceiveNotificationListener("receiveNotification");
      // this._removeBackAndroidHandler();
    }
github jpush / jpush-react-native / example / react-native-android / push_activity.js View on Github external
componentWillUnmount() {
		JPushModule.removeReceiveCustomMsgListener(receiveCustomMsgEvent);
		JPushModule.removeReceiveNotificationListener(receiveNotificationEvent);
		JPushModule.removeReceiveOpenNotificationListener(openNotificationEvent);
		JPushModule.removeGetRegistrationIdListener(getRegistrationIdEvent);
		console.log("Will clear all notifications");
		JPushModule.clearAllNotifications();
	}
github jpush / jpush-react-native / react-native-android / push_activity.js View on Github external
componentWillUnmount() {
    JPushModule.removeReceiveCustomMsgListener(receiveCustomMsgEvent);
    JPushModule.removeReceiveNotificationListener(receiveNotificationEvent);
  }
github syun0216 / goforeat / goforeat_app / app / components / HomePageHOC.js View on Github external
componentWillUnmount() {
    AppState.removeEventListener('change');
    JPushModule.removeReceiveNotificationListener('receiveNotification');
  }
github duheng / Mozi / src / AppNavigationState.js View on Github external
componentWillUnmount() {
    !!this.onBackPress && BackHandler.removeEventListener('hardwareBackPress', this.onBackPress);
    this.lastBackPressed = null;

    JPushModule.removeReceiveCustomMsgListener();
    JPushModule.removeReceiveNotificationListener();
    JPushModule.removeReceiveOpenNotificationListener();
    JPushModule.clearAllNotifications();
  }
github ok406lhq / RTCoin / src / root.js View on Github external
componentWillUnmount() {
        JPushModule.removeReceiveCustomMsgListener();
        JPushModule.removeReceiveNotificationListener();
    }