泰伯
泰伯
  • 发布:2022-01-19 10:16
  • 更新:2022-01-19 11:37
  • 阅读:1017

【报Bug】使用unipush推送plus.push.createMessage无效

分类:uni-app

产品分类: 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"  
                    }  
                },

提示不能同时配置两个个推SDK。
使用unipush推送,plus.push.createMessage无效,这是BUG还是unipush不支持使用plus.push.createMessage呢?如果使用unipush,又需要使用plus.push.createMessage该如何解决呢?希望官方能给解释一下,给一个解决方案。

2022-01-19 10:16 负责人:DCloud_Android_ST 分享
已邀请:
DCloud_Android_ST

DCloud_Android_ST

你的测试机系统版本多少。你可以下载HX3.3.7+ alpha版本测试下 (Android平台 修复 Push模块 createMessage 在安卓系统8以下系统可能无法创建通知栏消息的Bug)

  • 泰伯 (作者)

    系统版本是7.0,使用HX3.3.8alpha版本测试可以了,但是在ios10里,在“receive”事件里使用plus.push.createMessage会闪退,已经在payload里加参数做了死循环判断,还是一样会闪退,不知道咋搞了,论坛里找的方法都不行。

    2022-01-19 17:15

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