8***@qq.com
8***@qq.com
  • 发布:2020-01-18 16:37
  • 更新:2022-09-26 16:09
  • 阅读:875

plus.push.getClientInfo();

分类:HTML5+

推送方法获取客户端推送标识信息,在安卓所有属性一直都是null
代码如下:
document.addEventListener(
"plusready",
function() {
// 获取客户端标识信息
var timer = setInterval(function() {
if (window.clientInfo != null && window.clientInfo != "null") {
alert(window.clientInfo);
clearInterval(timer);
return;
}
window.clientInfo = plus.push.getClientInfo().clientid;
alert(window.clientInfo);
}, 1000);
//监听系统通知栏消息点击事件
plus.push.addEventListener("click", function(msg) {}, false);
//监听接收透传消息事件
plus.push.addEventListener("receive", function(msg) {}, false);
},
false
);

2020-01-18 16:37 负责人:无 分享
已邀请:
yyh_developer

yyh_developer

2022-09-26 问题又出现了

要回复问题请先登录注册