var aliyunPush = api.require('aliyunPush');
console.log('阿里云初始化',JSON.stringify(aliyunPush)) aliyunPush.turnOnPushChannel(function (ret) {
if (ret && ret.status) {
aliyunPush.getDeviceId(function (res) {
console.log('getDeviceId ',,JSON.stringify(res));
aliyunPush
});
}
});
[2023-11-1 14:39:56][ERROR] Uncaught (in promise) TypeError: Cannot read property 'turnOnPushChannel' of undefined at 0.a8908447dbdb1e88819f.js:11
|