触摸到的微笑
触摸到的微笑
  • 发布:2022-11-16 21:31
  • 更新:2022-11-17 09:11
  • 阅读:163

使用unipush客户端怎么才能接到receive 消息呢?

分类:uni-app

// #ifdef APP-PLUS
// 从系统消息中心点击消息启动应用事件
plus.push.addEventListener("click", function(res) {
console.log(res)
}, false);
// 监听在线消息事件 => 应用从推送服务器接收到推送消息事件。
plus.push.addEventListener("receive", function(res) {
console.log(res)
}, false);
// #endif

以上是代码,怎么才能接到 receive 消息呢?

2022-11-16 21:31 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

要回复问题请先登录注册