openimsdk / open-im-uniapp-demo

即时通讯
https://openim.io
GNU General Public License v3.0
145 stars 104 forks source link

Configure push, send message without push #30

Closed fulus06 closed 1 year ago

fulus06 commented 1 year ago

部署教程: https://doc.rentsoft.cn/#/v2/server_deploy/easy_deploy_new

uniapp配置个推(使用uniPush1.0, unipush2被封装了没有MasterSecret)信息,使用Java demo可以推送成功 image (图1:uniapp push 配置)

image (图2: uniapp 个推参数)

im server配置:config/usualConfig.yaml image (图3:服务端个推配置信息)

问题: 好友间发送消息没有推送信息。 自己写Java demo,使用图2的配置验证,可以推送到手机(open-im-uniapp-demo)。

Bloomingg commented 1 year ago

APP切到后台运行时调用如下方法,服务端才会进行推送 IMSDK.compatibleAPI(IMSDK.IMMethods.SetAppBackgroundStatus, IMSDK.uuidv4(), true) 同样切换到前台时设置为false

lgz5689 commented 1 year ago

目前已经更新到3.0版本,参考demo实现,https://github.com/OpenIMSDK/Open-IM-Uniapp-Demo