Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
checkTag = () => {
console.log("Checking tag bind state, tag: " + this.state.tag);
JPushModule.checkTagBindState(this.state.tag, (map) => {
if (map.errorCode === 0) {
console.log("Checking tag bind state, tag: " + map.tag + " bindState: " + map.bindState);
} else {
console.log("Checking tag bind state failed, error code: " + map.errorCode);
}
});
}
checkTagBindState() {
JPushModule.checkTagBindState('tag1', (result)=> {
Alert.alert(JSON.stringify(result))
})
}