-
Notifications
You must be signed in to change notification settings - Fork 553
[BUG] Notifications not working #654
Comments
@Wouter0100 Thank you for opening the issue. Just to make sure, is the pushes working after the gateway is online again? |
Does not work, unfortunately. |
Upgraded 0.60.1, unfortunately still no luck, although log messages seems to be a little more verbose:
|
@Wouter0100 Did you have any luck? Is it working right now? Could you try uninstalling and installing your app again (we've a version of the app in Beta that fixes it). |
Good you ask - weirdly enough I did receive 2 notifications on new years eve from a specific channel. After some more debugging and testing, I wasn't able to reproduce those notifications on new years day. Also the test push button still does not work (or atleast, I don't receive the notifications). |
@Wouter0100 Interesting. I'll check with back-end team if we changed something in the past days. Are you using our gateway, correct? |
@rafaelks yes, I am. What is the best way to debug the app and are there log lines in place for receiving notifications? This because I'm wondering if the test button notifications are not filtered in the app's side. |
@Wouter0100 The best way to debug this is to create two users, log with one on the web and one in the app. Kill the app and send a message to that user from the web. If you don't receive a notification in ~1 minute, something is wrong. Make sure your notifications are enabled in your device, you have all the permissions enabled and everything else to make the test, please. |
Hmmm - I did some testing, and weirdly enough, sometimes notificaties gets through (although, very late and not useful). Yesterday I tested and I received a notification once for a new livechat session, 30 minutes late (and which I already replied to). I will do some further testing next week. |
@sampaiodiego Can you help us investigating the issue here? I don't see any problem with my iOS notifications, but some people complain about the Android ones. @Wouter0100 Do you see the calls being made to our gateway? Does it return some kind of error or something? Also, are you testing with a stable internet connection? Thanks for your patience! |
Yes, the internet connection is stable. Rocket.Chat is hosted within a DC and my phone is most of the time on Wi-Fi or a reliable 4G connection. There are no errors within the Rocket.Chat logs. Notifications seem to be send just fine. Hmm - livechat seems to work fine now. Although, the channel is send as "#undefined" and I can't quick reply, but the notification is received without delay (even if I have the webclient open and in-focus, not sure if that's okay, but hey, it works). Will later test other channels again, as this was a normal livechat session. |
@Wouter0100 Sounds good! Regarding the live chat, I think this is a bug @sampaiodiego & @rodrigok, can we fix it for next release please? (cc @theorenck). |
@rafaelks ah, okay. Is the "Send a test push to my user" also a bug, because it isn't working? |
@Wouter0100 We identified that the "Test push" is a bug in our app, but the other issue with "undefined" is going to be fixed. @leonardoaramaki Is the test push something we stopped supporting in the past releases, because of that checks we made? Can we add the support again (in a secure way)? |
@Wouter0100 once the guys fix receiving notifications from the "test push" button, this is the most reliable way for testing receiving push notifications.. because it forces the server to send a push notification to each device you have registered. on the livechat push issue, do you mind opening an issue on main repo? this is something I have noticed before but didn't have time to fix.. having an issue will help us tracking it down. thx |
@rafaelks I thought something like that, indeed. Because the channel/user doesn't really exists, for example, this is easily overseen when implemented such a check. @sampaiodiego done. RocketChat/Rocket.Chat#9341 Thanks for the fast responses and awesome support! |
@sampaiodiego is there an issue to track the notifications bug that isn't related to LiveChat? |
which one @pkostiuk ? |
The issue of notifications not working. I'm experiencing the same problem with Android devices (native and Cordova app). I assume it's an issue with Rocket.Chat server and not the Android client. |
@sampaiodiego the updated Cordova app released today fixed the issue. Thanks for all the hard work! |
@pkostiuk seems like you're in the wrong repository, as this is one is related to the Rocket.Chat+ (native) app. Regardless, I did some more digging: so notifications in general are working, somehow. I got the following logs. I was logged in the web the whole time (even when the livechat began):
Then I opened the database to find out of those tokens are the correct ones, as there seem to be more devices in the current database then needed. Currently we are with 3 users (and a lot of livechat users), which have in total of 8 devices. User 1 (me, mMvjThapLYfBCah4P): 3 devices, all enabled.
College 1 (2fjYPRagno3dfhYfE): 1 device, enabled.
College 2 (XXxC3DiYvtsRK8j4s): 2 devices, all enabled.
Hmm - after I see this, it seem that there is just somethng wrong with my user (and that it's fixed for my college) - or some configuration. I do not receive notifications for channels, but for private messages and livechat messages I do. Also, this does not seem to be a issues for the Android app, as just notifications are not properly send for my user. Rather an issue for Rocket.Chat main repo. |
I now also tested when I was offline in the web interface (college sending a message in #datacenter channel). Nothing. Not even in logs. |
College 2 says that he sometimes receives notifications, but sometimes he does not. All from the same #datacenter channel (just for testing, none of the channels work, but yeah). |
@Wouter0100 @sampaiodiego Is it possible that we're having some instability issues in our gateway? If the app sometimes and receives and sometimes don't, the issue looks like it's on server side, right? How could we detect if the push notification was sent or not? |
@rafaelks sometimes notifications are really slow, sometimes fast and sometimes they won't arrive (bur are send). |
Not valid anymore for version 2.0.0. |
Since I installed 0.59.3 and after that switched to a Oneplus 5T push notifications stopped working at all. Strangely enough, my colleagues seems to experience similar issues.
At first, the "Send a test push to my user"-button was working in the Settings => Push page, but that stopped working too recently (around the same time I switched to the 5T). When doing debugging with some logs, it seems I have registered 4 devices. But, after pressing "Send a test push to my user" some times (2-3 times) 1 push token is removed from the devices and so, pressing again will only send the test notification to 3 devices. After clearing my Rocket.Chat+ data on my Oneplus 5T and login in again, I have 4 push tokens (devices) again, but still no notifications are received. It seems my device is not receiving them properly, and so is removed.
Logs from Rocket.Chat:
I'm not sure how to debug the app and get some logs here, unfortunately. Should logcat work?
Strangely enough, https://gateway.rocket.chat/ is down now. But at the time of testing it wasn't.
Trigger a push notification in any way.
The text was updated successfully, but these errors were encountered: