element-hq / riot-android

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

Riot don't ring #2759

Open B4rabbas opened 5 years ago

B4rabbas commented 5 years ago

Riot don't work if the phone is locked

Buntbart commented 5 years ago

It was the same here until I switched off the battery optimization for Riot.im. Now I'm curious whether the battery life will be greatly reduced.

BillCarsonFr commented 5 years ago

Hi @B4rabbas, can you please submit a bug report by shacking your device (or using the Report Bug item in the app menu). It will allow me to investigate the logs.

B4rabbas commented 5 years ago

@BillCarsonFr done, I've mentionned your name in the bug report

BillCarsonFr commented 5 years ago

Thanks @B4rabbas is saw it. I can see that you are using the FDroid version. Just to be sure, when you say that it doesnt ring does that mean that you have no notifications or that the notification does not make sound? In the FDroid version, you should always have a 'sticky' notification in the system tray (saying listening for events) is it the case? Thx.

B4rabbas commented 5 years ago

Yes there is always the sticky notification of riot (and battery optimisation disabled too). There is no sound and no ring neither.

B4rabbas commented 5 years ago

I see the notification only if I open the app, with missed vocal or video call.

B4rabbas commented 5 years ago

I have seen the same issue on 5 phones, xiaomi redmi 5 plus, huawei honor 7, asus z2, huawei mate 20 pro & samsung j6 2016. With fdroid version at least.

bennypr0fane commented 5 years ago

I get no audio for notifications with the Google Play version on Sony Xperia X (F5121). I used the Push Notification Tester app with Delivery priority set to high and Channel priority high, which was successful. Then I tested with Delivery priority set to normal and Channel priority minimum, also successful.

B4rabbas commented 5 years ago

If only Riot would work it definitly destroy wathsapp & co...

szimszon commented 5 years ago

If I understand it well in battery saving mode Riot don't fetch the message from the server until in foreground. So if someone calls you only a push notif. is sent through Google and Android takes it as a notification (with a notification sound). In normal mode Riot receives the push notification through Google and contacts the server, sees it is a call and acts accordingly. Developers may correct me if I'm wrong here.

B4rabbas commented 5 years ago

Any news ?

bmarty commented 5 years ago

Sorry we have been quite busy with the keys backup feature. Notification issues will be our P1 subject for February

B4rabbas commented 5 years ago

So nice, be sure I'm following this

gerroon commented 5 years ago

I have this issue with F-droid version where the ringing and call notification does not happen whatsoever as long as the app is not in the foreground.

So the app must be open and be foreground app to take calls, otherwise I only get "missed call" or "dropped call" notification about a cali that was never engaged on my device.

Google Play version does not seem to have this issue.

sylph1o commented 5 years ago

I have this issue with F-droid version where the ringing and call notification does not happen whatsoever as long as the app is not in the foreground.

So the app must be open and be foreground app to take calls, otherwise I only get "missed call" or "dropped call" notification about a cali that was never engaged on my device.

Same here. No notification at all, not even for a missed call (F-Droid version too).

If the app is opened while being called, the call notification happens as expected, with the screen to answer (or not) the call.

If the app is opened after missing the call, the ringtone will play and the 'incoming call' notification will be received (the one that cannot be dismissed). The screen on which to answer (or not) the call will not appear, though.

I cannot report on the Google Play version. In my humble and respectful opinion, not being able to receive a call is quite a serious problem when trying to convince people to switch over from (in)famous proprietary alternatives.

bennypr0fane commented 5 years ago

In your reports, please be sure to differentiate between

  1. "no notification" (and hence no audio signal), which is not the topic of this issue - there's another one about that problem - and
  2. notification is received, but not accompanied by audio signal, which is the topic of this issue.
bennypr0fane commented 5 years ago

I haven't seen a single Instant Messaging app for Android that has notifications working correctly without using FCM (I've tried more than half a dozen) . I am hence beginning to suspect that this is just technically impossible, and it's by design. It may be a feature of Android that Messaging services can't work properly unless they use FCM

sylph1o commented 5 years ago

Thank you @bennypr0fane, I reported in the wrong issue, then. Do you have the reference of the issue about the absence of call notification when Riot is not on the foreground?

gerroon commented 5 years ago

I haven't seen a single Instant Messaging app for Android that has notifications working correctly without using FCM (I've tried more than half a dozen) . I am hence beginning to suspect that this is just technically impossible, and it's by design. It may be a feature of Android that Messaging services can't work properly unless they use FCM

Notifications work with the Fdroid version it is the ringing that does not work

bennypr0fane commented 5 years ago

Thank you @bennypr0fane, I reported in the wrong issue, then. Do you have the reference of the issue about the absence of call notification when Riot is not on the foreground?

It's here: #2800

@gerroon : It's good to know that notifications are working for you in the F-Droid version, but alas, not for everyone. Maybe it can be useful if you report your device model/Android version working in relation to issue #2800.

GammaPi commented 4 years ago

Huawei EMUI is famous for killing apps ruthlessly. The solutions on dontkillmyapp.com works and the steps include: 1.Use adb to uninsall powerengine 2.Lock the app in recent app page (and don't swipe up if you want to receive calls when the screen is locked) 3.Enable all 3 switches in app launch setting 4.Disable Battery optimization 5.Open "Optimizer/Tablet Manager" app and disable Smart tune-up (or huawei will reverse all the settings automatically after sometime)