如题,想问问做过类似功能,需求的同行是如何解决这个问题的

LionYoung
- 发布:2015-11-18 15:58
- 更新:2015-11-18 16:53
- 阅读:2826
如何在点击推送消息后跳转的指定APP中的某个页面
分类:HBuilder

plus.push.addEventListener("receive", function(msg) {
if (plus.os.name == "iOS") {
if (msg.aps) {
//alert(msg.payload.url)//跳转地址
location.href = msg.payload.url;
}
} else {
// alert(msg.content)
plus.nativeUI.confirm('有新的消息,是否立即处理?', function(e) {
if (e.index == 0) {
location.href = msg.content;
}
}, "消息", ["确定", "取消"]);
}
LionYoung (作者)
这个方法不行,其实我就是想在接收到推送之后,现在点击完只能打开APP的主页面,我想要的是点击后跳转到APP里面指定的某个页面
2015-11-19 11:31
除膜慰道
用透传模版,带参数传过来
2015-11-19 15:17