uni-app 使用unipush推送plus.push.createMessage无效
uni-app 使用unipush推送plus.push.createMessage无效
| 项目 | 值 |
|---|---|
| 产品分类 | uniapp/App |
| PC开发环境操作系统 | Windows |
| PC开发环境操作系统版本号 | win7 |
| HBuilderX类型 | 正式 |
| HBuilderX版本号 | 3.3.5 |
| 手机系统 | Android |
| 手机系统版本号 | Android 10 |
| 手机厂商 | 小米 |
| 手机机型 | mi max |
| 页面类型 | nvue |
| vue版本 | vue2 |
| 打包方式 | 云端 |
| 项目创建方式 | HBuilderX |
操作步骤:
配置unipush推送,无法使用plus.push.createMessage
预期结果:
使用unipush的同时,支持使用plus.push.createMessage
实际结果:
plus.push.createMessage无反应
bug描述:
在同一部手机上测试,使用unipush推送服务,plus.push.createMessage( str, “LocalMSG”, options );创建本地消息无效,消息中心不显示消息。unipush配置:
"push" : {
"unipush" : {}
},
使用个推推送服务,plus.push.createMessage( str, “LocalMSG”, options );创建本地消息有效,消息中心可以显示消息。个推配置:
"push" : {
"igexin" : {
"appid" : "xxxxxxxx",
"appkey" : "xxxxxxxx",
"appsecret" : "xxxxxxxx"
}
},
如果配置里同时配置这两个参数:
"push" : {
"unipush" : {},
"igexin" : {
"appid" : "xxxxxxxx",
"appkey" : "xxxxxxx",
"appsecret" : "xxxxxxx"
}
},
更多关于uni-app 使用unipush推送plus.push.createMessage无效的实战教程也可以访问 https://www.itying.com/category-93-b0.html
你的测试机系统版本多少。你可以下载HX3.3.7+ alpha版本测试下 (Android平台 修复 Push模块 createMessage 在安卓系统8以下系统可能无法创建通知栏消息的Bug)
更多关于uni-app 使用unipush推送plus.push.createMessage无效的实战教程也可以访问 https://www.itying.com/category-93-b0.html
系统版本是7.0,使用HX3.3.8alpha版本测试可以了,但是在ios10里,在“receive”事件里使用plus.push.createMessage会闪退,已经在payload里加参数做了死循环判断,还是一样会闪退,不知道咋搞了,论坛里找的方法都不行。

