Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
// AppState.removeEventListener('change');
JPushModule.removeReceiveNotificationListener("receiveNotification");
// this._removeBackAndroidHandler();
}
componentWillUnmount() {
JPushModule.removeReceiveCustomMsgListener(receiveCustomMsgEvent);
JPushModule.removeReceiveNotificationListener(receiveNotificationEvent);
JPushModule.removeReceiveOpenNotificationListener(openNotificationEvent);
JPushModule.removeGetRegistrationIdListener(getRegistrationIdEvent);
console.log("Will clear all notifications");
JPushModule.clearAllNotifications();
}
componentWillUnmount() {
JPushModule.removeReceiveCustomMsgListener(receiveCustomMsgEvent);
JPushModule.removeReceiveNotificationListener(receiveNotificationEvent);
}
componentWillUnmount() {
AppState.removeEventListener('change');
JPushModule.removeReceiveNotificationListener('receiveNotification');
}
componentWillUnmount() {
!!this.onBackPress && BackHandler.removeEventListener('hardwareBackPress', this.onBackPress);
this.lastBackPressed = null;
JPushModule.removeReceiveCustomMsgListener();
JPushModule.removeReceiveNotificationListener();
JPushModule.removeReceiveOpenNotificationListener();
JPushModule.clearAllNotifications();
}
componentWillUnmount() {
JPushModule.removeReceiveCustomMsgListener();
JPushModule.removeReceiveNotificationListener();
}