y***@163.com
y***@163.com
  • 发布:2021-07-24 17:48
  • 更新:2021-07-24 18:10
  • 阅读:610

点击通知前往app触发事件要写在哪里?

分类:uni-app

jyJPush.addJYJPushReceiveOpenNotificationListener(result=> {
// 监听成功后,若点击推送消息,会触发result;数据格式保持极光返回的安卓/iOS数据一致
uni.showToast({
icon:'none',
title: JSON.stringify(result)
})
});
这块代码是要写在哪里才能触发?

2021-07-24 17:48 负责人:无 分享
已邀请:
[已删除]

[已删除]

APP.vue 的onLaunch里面试试吧

该问题目前已经被锁定, 无法添加新回复