element-hq / element-ios

A glossy Matrix collaboration client for iOS
https://element.io
GNU Affero General Public License v3.0
1.73k stars 500 forks source link

Voice and Video call error after click notification when app is on background #7031

Open febryituery opened 2 years ago

febryituery commented 2 years ago

Steps to reproduce

  1. Where are you starting? What can you see? I clone this repo and change homeserver with my own server and configuration. I did configure everything from APNs to sygnal config

  2. What do you click? I tried regular chat notification and it worked. And then when i tried voice or video call, notification show up, but when i click accept, it redirect to app and then terminated. IMG_5346

  3. More steps… So when app is on background but app still alive (not in terminated state), duration of notification shows like normal. But when app is on background but app is terminated, notification only show like 3 second and then dissapear. Also got this error message from xcode

    Jepretan Layar 2022-11-03 pukul 11 55 36

Outcome

What did you expect?

Voice and Video call work like a charm after clicking from notification tray when app is on background

What happened instead?

When notification arrive, i clicked accept and then it redirect to app and then terminated. So i can't receive voice or video call from background state

Your phone model

iPhone 11

Operating system version

16.1

Application version

1.9.7

Homeserver

Matrix.org

Will you send logs?

Yes

ismailgulek commented 2 years ago

When the device is not locked it's normal to be navigated to the app.

febryituery commented 2 years ago

All i did was just clone the repo and change homeserver, change bundle id, change provisioning.

febryituery commented 2 years ago

This issue was the follow up from this closed issue in sygnal github issue

febryituery commented 2 years ago

update: I tried to disable these following code inside MXKAccount.m. Now i can receive voice and video call normally. But still had issue when app is terminated. Notification popups only 3 second and then dissapeared.

Jepretan Layar 2022-11-07 pukul 14 30 15
toshanmugaraj commented 1 year ago

@ismailgulek Hi could you please check the PR and approve.

rumz26 commented 9 months ago

@febryituery did you get any issue like 4-6 empty push notifications coming along with ringing voip notification?