How to use the jpush-react-native.deleteAlias 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 / set_activity.js View on Github external
deleteAlias = () => {
		console.log("Deleting alias");
		JPushModule.deleteAlias((map) => {
			if (map.errorCode === 0) {
				console.log("delete alias succeed");
			} else {
				console.log("delete alias failed, errorCode: " + map.errorCode);
			}
		})
	}
github jpush / jpush-react-native / example / react-native-iOS / set_activity.js View on Github external
deleteAlias() {
		JPushModule.deleteAlias((result)=> {
			Alert.alert(JSON.stringify(result))
		})
	}