element-ios icon indicating copy to clipboard operation
element-ios copied to clipboard

IOS VOIP notifications getting significantly delayed if app is closed/in background

Open harshit990 opened this issue 2 years ago • 7 comments

Steps to reproduce

  1. Make sure sygnal is set up properly for VOIP, log is also showing correctly configured
  2. Make a VOIP call to your iOS device

Outcome

What did you expect?

VOIP notifications should get triggered and the phone should ring immediately

What happened instead?

Phone is usually rings with significant delay

Your phone model

Iphone 12

Operating system version

iOS5.6

Application version

v1.9.5

Homeserver

https://matrix.sandsai.com/

Will you send logs?

Yes

harshit990 avatar Sep 20 '22 20:09 harshit990

Thanks for opening this issue, can I just check something here:

Make sure sygnal is set up properly for VOIP

When you say this, are you using Element from the App Store or TestFlight (as there should be no configuration necessary), or is this on your own fork of the app?

pixlwave avatar Oct 04 '22 09:10 pixlwave

I am using my own form of the element ios. I have setup the own sygnal server using matrix-docker-ansible-deploy. Since notification is coming then sygnal configuration is also working. But the delay in call ringing is significantly visible.

I have attached sygnal configuration. Could you please let me know what should I do to resolve this.

Syngal.txt

harshit990 avatar Oct 04 '22 10:10 harshit990

Have you tried attaching a debugger to the NSE, to check whether the delay is receiving the event push notification, sending the PushKit request to Sygnal, or receiving the PushKit notification back from Sygnal? That last one might be in the app itself rather than the NSE.

pixlwave avatar Oct 04 '22 10:10 pixlwave

I have checked that event push notification, Clearly I am getting the notification but first time it is not opening the callkit immediately, infact I am getting the "call from username" notification but callkit is not opening, on receiving of second time only it is opening the callkit resulting significant delay in ringing

harshit990 avatar Oct 04 '22 19:10 harshit990

If I'm reading your reply correctly, that is the expected behaviour.

If you client is sending the PushKit request and there's a significant delay before receiving the PushKit notification then it sounds like an issue on the back-end. If however there's a significant delay between receiving the PushKit notification and CallKit reacting, then that would be in the app itself.

pixlwave avatar Oct 07 '22 08:10 pixlwave

I am also facing this issue. As per comments i agree that some delay between API call but it should not 1 or 2 minutes delay.

abhinarigara avatar Dec 03 '22 05:12 abhinarigara

@harshit990 @abhinarigara i am also facing same issue but it is not frequent additionally, i also get extra 5 empty notification message along or after with ringing?

rumz26 avatar Mar 07 '24 12:03 rumz26