feat(video_calls): android repeated call after hanging up fix and ios repeated calls after call initiation fix

This commit is contained in:
misha
2026-10-16 15:40:41 +03:00
parent 6d2935400a
commit 86e9d0cc31
14 changed files with 309 additions and 30 deletions

View File

@@ -701,7 +701,9 @@ import flutter_foreground_task
data.configureAudioSession = false
data.audioSessionActive = false
data.audioSessionMode = "videoChat"
data.ringtonePath = "system_ringtone_default"
// Do not set ringtonePath. The plugin stores that string as the ringtone
// file name. "system_ringtone_default" is not in the app, so CallKit ends
// the call at once and PushKit delivers the same push again.
// Remember the id so the in-app socket path does not report it again.
// The push itself must still be reported, or iOS kills the process.
_ = reserveIncomingCall(id)