How to use the jpush-react-native.removeReceiveCustomMsgListener 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 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 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 jpush / jpush-react-native / react-native-android / push_activity.js View on Github external
componentWillUnmount() {
    JPushModule.removeReceiveCustomMsgListener(receiveCustomMsgEvent);
    JPushModule.removeReceiveNotificationListener(receiveNotificationEvent);
  }
github ok406lhq / RTCoin / src / root.js View on Github external
componentWillUnmount() {
        JPushModule.removeReceiveCustomMsgListener();
        JPushModule.removeReceiveNotificationListener();
    }