The huawei push for cordova, hms sdk version, now only support android.
cordova plugin add cordova-huawei-push --variable APPID=YOURAPPID --variable PACKAGENAME=YOURPACKAGENAME --savecordova.plugins.huaweipush.init();document.addEventListener('huaweipush.receiveRegisterResult', function (event) {
console.log(event) // event will contain the device token value
}.bind(this), false);You can get the token value by event.token
cordova.plugins.huaweipush.stop();document.addEventListener('huaweipush.notificationOpened', function (event) {
console.log(event) // the event will contain a extras key, which contain the data what you send
}.bind(this), false)document.addEventListener('huaweipush.pushMsgReceived', function (event) {
console.log(event) // the event will contain a extras key, which contain the data what you send
}.bind(this), false)