Incoming calls broken (when app in background)
See original GitHub issueSteps to reproduce
- Make sure the app is not open.
- Ask someone to call you.
Outcome
What did you expect?
To receive an incoming call notification.
What happened instead?
- Background sync: no notification. When you open app later, the incoming call header quickly appears and disappears. And the notification counter goes up to indicate the missed call.
- ntfy: app crashes completely, either by itself, or when you next open it.
Given that most calls will be received while the app isn’t open, this is a major breakdown in calling functionality.
The bug was added in 1.5.7, and updating to 1.5.8 didn’t fix it. Can’t be 1.5.4 for sure, the next older version on F-Droid.
Logs
FATAL EXCEPTION: pool-9-thread-1
Process: im.vector.app, PID: 23906
android.app.BackgroundServiceStartNotAllowedException: Not allowed to start service Intent { act=im.vector.app.core.services.CallService.ACTION_CALL_TERMINATED cmp=im.vector.app/.core.services.CallAndroidService (has extras) }: app is in background uid UidRecord{8460461 u0a128 TRNB idle change:uncached procs:0 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1870)
at android.app.ContextImpl.startService(ContextImpl.java:1826)
at android.content.ContextWrapper.startService(ContextWrapper.java:776)
at im.vector.app.features.call.webrtc.WebRtcCallManager.onCallEnded(WebRtcCallManager.kt:100)
at im.vector.app.features.call.webrtc.WebRtcCallManager.access$onCallEnded(WebRtcCallManager.kt:1)
at im.vector.app.features.call.webrtc.WebRtcCallManager$createWebRtcCall$webRtcCall$4.invoke(WebRtcCallManager.kt:2)
at im.vector.app.features.call.webrtc.WebRtcCallManager$createWebRtcCall$webRtcCall$4.invoke(WebRtcCallManager.kt:1)
at im.vector.app.features.call.webrtc.WebRtcCall$terminate$2.invokeSuspend(WebRtcCall.kt:148)
at im.vector.app.features.call.webrtc.WebRtcCall$terminate$2.invoke(Unknown Source:8)
at im.vector.app.features.call.webrtc.WebRtcCall$terminate$2.invoke(Unknown Source:4)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:5)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:72)
at im.vector.app.features.call.webrtc.WebRtcCall.terminate(WebRtcCall.kt:9)
at im.vector.app.features.call.webrtc.WebRtcCall.terminate$default(WebRtcCall.kt:11)
at im.vector.app.features.call.webrtc.WebRtcCall$onCallHangupReceived$1.invokeSuspend(WebRtcCall.kt:38)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:119)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@aa9080d, java.util.concurrent.Executors$FinalizableDelegatedExecutorService@17a93c2]
Your phone model
Xiaomi Mi 5 (3GB RAM)
Operating system version
Android 12 (LOS 19.1)
Application version and app store
1.5.7, 1.5.8, 1.5.10 - F-droid
Homeserver
No response
Will you send logs?
Yes
Are you willing to provide a PR?
No
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
BIG Launcher black screen on incoming call fix
1) Go to phone's system settings and choose "Installed apps". 2) In the apps list, search for the "BIG Phone for Seniors" app...
Read more >Detecting incoming call and opening a service in background ...
I am facing the following error on incoming call in Oreo API 26. if you don't want to run application in background then...
Read more >Galaxy S9+ Phone App Rings in the Background
Go to settings, then apps, and tap the three buttons on the top right and tap show system apps. Find the phone app...
Read more >Doesn't work incoming calls when the application is terminated.
Incoming calls don't work when the application is terminated. But when the app is on background or foreground mode everything works fine. Also, ......
Read more >iPhone 12 Pro - Voice breaking up on calls - Apple Community
Issue: When using my phone in our home, the person I am speaking with reports that my voice is breaking up and garbled...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can repro the issue, but it’s a bit random.
I have merged https://github.com/vector-im/element-android/pull/7712 and this may help to fix this issue.
I will do more tests.
Ah, yes. I also never get a notification for the missed call. Only the crash. Once I open the app, it syncs and informs me of the missed call.