element-ios
element-ios copied to clipboard
IOS VOIP notifications getting significantly delayed if app is closed/in background
Steps to reproduce
- Make sure sygnal is set up properly for VOIP, log is also showing correctly configured
- 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
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?
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.
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.
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
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.
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.
@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?