|
[superwebview]
小米推送模块接入到安卓原生后registerPush没有效果
[复制链接]
本帖最后由 Mr.zhang4566 于 2017-6-16 14:38 编辑
var mipush = api.require('mipush');
var appid;
var appKey;
if (api.systemType = 'android') {
appid = '********************';
appKey = '***********';
} else {
appid = '********************';
appKey = '***********';
}
mipush.registerPush({
appId: appid,
appKey: appKey
}, function (ret) {
alert(JSON.stringify(ret));
});
报错 appid和报名不匹配
|
|