element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Clients doesn't receive notifications until the app is open #3434

Open amarquez80 opened 4 years ago

amarquez80 commented 4 years ago

Hi everyone I'm having problems with notifications they arrive only if the app is open this behavior is the same on iPhone and Android clients.

Someone has been through a similar situation?

Thanks

herndlm commented 4 years ago

Hi, have you been maybe testing RiotX lately? I'm not sure if it is related but I was testing it on the same device I have Riot, uninstalled it again and experienced the same notification problem you're describing. 2 days ago I noticed Notification Targets in the settings and RiotX was still showing up there although I removed the device/session. After deleting it and my contacts manually opening Riot once they seem to be now getting notifications again. Just try it out, won't hurt I guess :)

joachimnielandt commented 4 years ago

Perhaps I am misunderstanding the intended behaviour, but I think I'm experiencing the same problem. I'm running my own private matrix server and connect to it with the android app. When I send something to another user (same app), the message is not notified until the other user manually opens the application. This also goes voor voip / conference calling. Is there a way to force 'always online', maybe?

bahur142 commented 4 years ago

Hi, Depending on the mobile manufacturer, there are some steps that need to be fulfilled in order the notifications to work normally. For example I use Xiaomi Mi6 (with MIUI) and I used to check Settings --> Apps --> Manage Apps --> Riot.im and check "Autostart". Also in the same window "Battery Saver" needs to be "No restrictions". For Huawei you need to add the app in the allowed apps that run in the background. See this link For Samsung, Sony, Nokia ... I am sure that there are similar settings. Check it out.

And if you wonder why the mass chat apps like Viber, Messanger and so on works without problems, that is because they are more "aggressive" and they set these settings during the installation automatically.

joachimnielandt commented 4 years ago

Good hint, I'll try to get that behaviour on my OnePlus (apparently to do with disabling battery optimisation for a specific app).

finzzz commented 4 years ago

Can confirm this issue. Riotx has no problem. Only the classic riot.

ghost commented 4 years ago

Running Android 10, with 0.9.12 Riot.im app. Not receiving notifications when friend sends me a message. Doesn't matter if I have screen on or off. Happens daily, multiple times per day.

nakal commented 4 years ago

I don't get notifications, either. The app is useless at the moment.

deltabeard commented 4 years ago

I'm not getting notifications either. Element: Version 1.0.0 [40100002], 0.0.1 Matrix SDK, 3.1.2 OLM Version. Synapse: 1.17.0