element-hq/riot-android

No phone call ring unless app in foreground

Opened this issue · 5 comments

I tried with a Oneplus 5 running LeneageOS, and a Huawei phone, both running Riot from Play store, and I tried in both directions. When you make a voice call, the receiving device gets a notification that looks like a message notification, but it does not start ringing unless you're looking at the app. If the app is not running, or even if it's running in the background, it will not ring.

rajil commented

Make sure that app is not optimized following this.

I have turned off battery optimization already.

I am also seeing this behavior on stock Android 9 on a pixel2xl and a pixel 1.

Checklist:

  • Riot app is closed, ring and notification comes through fine when opened.
  • Battery optimization is off for Riot.im
  • All notifications set to noisy in phone settings and desktop web app settings and android system settings
  • Ringtones/sounds are set

Let me know if any additional data would be helpful. If anyone can provide code pointers for what might be suppressing this behavior, I could try to take a look and see if anything sticks out.

nakal commented

I'm affected too. No ringtone. Everything in the app is set to loud. No ringing when locked and for me even when unlocked. I only see the notification and hear a call tone in the ear piece.

Btw: This is on the new element app.

Facing the same issue, unless I have the app open on foreground the chances are I won't receive a call at all. Sometimes even no notifications are received.