-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] offlinePush of notification config didn't work #2390
Comments
Hello! Thank you for filing an issue. If this is a bug report, please include relevant logs to help us debug the problem. Join slack 🤖 to connect and communicate with our developers. |
Hi, I have thoroughly reviewed the memberInvited handling logic regarding notifications. I can confirm that the offlinePush configuration item in the notification configuration file only uses the enable parameter, and this parameter is loaded but not used. I have replicated your issue and have also fixed it locally; this solution is feasible. I believe there is a design conflict in OpenIM, or the functionality is not fully implemented. It appears that the offline push notifications for system notifications have not been implemented. I am attempting to implement this functionality, which involves a significant amount of work and changes to other projects, so it will take some time. |
After careful inspection, I found that only minor changes are needed to fix this bug. I have submitted a PR. |
@printlin Hello, we have deployed using the latest version of Docker and tested the offline push configurations for 'memberInvited' and 'memberKicked'. The issue has not been resolved; the offlinePush still do not take effect. case 1memberInvited:
isSendMsg: true
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: false
title: "memberInvited title"
desc: "memberInvited desc"
ext: "memberInvited ext" offlinePush.enable = false , still get [NEWMSG] offline message case 2memberInvited:
isSendMsg: true
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: "Hi.test title"
desc: "Hi.test desx"
ext: "test" still get [NEWMSG] offline message case 3memberInvited:
isSendMsg: false
reliabilityLevel: 1
unreadCount: false
offlinePush:
enable: true
title: "Hi.test title"
desc: "Hi.test desx"
ext: "test" change isSendMsg to false, the message will not be pushed, 'isSendMsg' is worked. |
Okay, I will follow up |
I was unable to reproduce your issue. I deployed using the source code on the release-v3.8 branch, and all configurations match my expectations. To verify, I also printed the title and content at the Push source code, and everything appears normal. Perhaps you could double-check if you are using the latest code. |
OpenIM Server Version
3.7
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
目前在项目中我们使用FCM的离线推送,当用户离线时,对用户进行的群操作,比如 邀请进群,openIM会推送离线消息,
这个 [NEWMSG] 应该时调用firebase推送入参的 title、desc 都未设置
我们尝试修改了notification的配置
举例:
offlinePush中的配置并未生效,enable 无论 true 或者 false 都是都会推送离线消息。
如果修改 isSendMsg 为 false,那么这个memberInvited操作在线消息和离线消息都不会发送。
The text was updated successfully, but these errors were encountered: