本地usb开发测试的时候,可以执行,打包成app ,不执行
创建本地消息
var str = '您有一条新的咨询订单'
var options = {cover:false};
plus.push.createMessage(str, {type: 'LocalChatMSG', chat_order_id: message.chat_order_id}, options);
plus.push.addEventListener(
'click',
function(msg) {
// click:{"__UUID__":"androidPushMsg73436120","title":"眼视光-医生端","appid":"__UNI__8F33ECB","content":"您有一条新的咨询订单","payload":{"type":"LocalMSG","chat_order_id":"1"}}
if (msg.payload.type == 'LocalChatMSG' && msg.payload.chat_order_id) {
setTimeout(_ => {
uni.navigateTo({url: `/pages/myAppointmentPay/index?chat=1&id=${msg.payload.chat_order_id}&orderId=${msg.payload.chat_order_id}`})
}, 1000)
}
},
false
);
8***@qq.com (作者)
安卓和ios 都不可以, 苹果xr和 联想 zuk z2, 内测版本没上线,我可以给你安卓安装包 uni-app 的 id _UNI_8F33ECB , 是这个appid吗
2020-03-10 21:00