-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Push notifications do not work for groups/channels #6988
Comments
|
As you see on the log, the RC server does not send a push token. So this issue is independent of the mobile client. |
We found that our own Qt based client did not change back the status from "Online" to "Away". As this is a precondition to receive notifications, logged in users never received them. It seemed to be a coincidence, that the App was running when we tested the behaviour in rooms. |
We have now implemented online/away for the App, the status is shown correctly in Rocket.Chat. What are the conditions to send push notifications for mobile use? |
@rodrigok Can you help us here? What's the conditions to send a push notification to the mobile apps? |
After studying the code in packages/rocketchat_lib/server/lib/sendNotificationsOnMessage.js around line 150 ( = rocketchat_lib.js on server around line 1820) we found out that push is only delivered to mobile Rocket:chat devices, if their network status is disconnected. Our Qt based App only went to user status "away", when backgrounded, which is not recognized really being away in the push notification logic. We are now also disconnecting and have solved the issue. |
Describing basic mechanism of notifications, after having studied the code, see RocketChat/Rocket.Chat#6988
Describing basic mechanism of notifications, after having studied the code, see RocketChat/Rocket.Chat#6988
Describing basic mechanism of notifications, after having studied the code, see RocketChat/Rocket.Chat#6988
Describing basic mechanism of notifications, after having studied the code, see RocketChat/Rocket.Chat#6988
Even when setting notifications to receive all messages for mobile, in any group or channel they do not arrive at the mobile device.
[34kI20170517-00:51:23.974(2) Push: Sent message "#testraum1" to 0 ios apps 0 android apps
Mentions or notifications for PM work as expected.
[34kI20170517-00:51:48.097(2) Push: Sent message "#testraum1" to 0 ios apps 1 android apps
Also notifications for desktop work as expected.
See also #5308 and #1602 (comment) (allow to configure push independent of status).
Rocket.Chat Version: 0.56 (upgraded today), observed also with 0.52
The text was updated successfully, but these errors were encountered: