Skip to content

Notify quietly and support answer-and-end for a second incoming call - #5

Merged
andrejunges merged 2 commits into
close-mainfrom
port/close-mobile-641
Aug 3, 2026
Merged

Notify quietly and support answer-and-end for a second incoming call#5
andrejunges merged 2 commits into
close-mainfrom
port/close-mobile-641

Conversation

@andrejunges

Copy link
Copy Markdown
Collaborator

What

When a second incoming call arrives while the user is already on an active call:

  • Show a quiet, lightweight notification (default-importance channel, no full-screen takeover, no ring sound) with a gentle repeating vibration nudge, so the call in progress isn't disrupted.
  • Label the accept action "End & answer" when another call is genuinely active, making it explicit that answering disconnects the current call.
  • Accepting the second call ends the first one ("answer & end"); the shared audio session and foreground notification are only torn down when no other call remains active, so the surviving call's audio and notification are preserved.
  • If the first call ends while the second is still ringing, the second call's notification is re-posted (surviving the ended call's foreground-service teardown), relabeled "Answer", and the vibration nudge resumes.
  • Guard against duplicate accepts (e.g. a double-tap on the notification's Answer action) since the CallInvite is single-use.

Hold/switch between two calls and upgrading a now-alone second call to a full ring are deferred follow-ups.

Notes

Ported from closeio/close-mobile#641 as part of the fork migration. Only the SDK-side (patch-file) changes moved here — the app-side Kotlin changes (CloseRNNativeModule.kt) remain in closeio/close-mobile#641.

🤖 Generated with Claude Code

@andrejunges andrejunges self-assigned this Aug 3, 2026
@andrejunges
andrejunges requested a review from treycucco August 3, 2026 12:09
@andrejunges
andrejunges marked this pull request as ready for review August 3, 2026 12:11
When a second call arrives while the user is already on a call, show a
quiet, lightweight notification with a gentle repeating vibration nudge
instead of the full ring and full-screen takeover, and label the accept
action "End & answer" since accepting disconnects the current call.
Accepting the second call ends the first without tearing down the shared
audio session, and if the first call ends while the second is still
ringing, its notification is re-posted and relabeled "Answer".

Ported from closeio/close-mobile#641.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@andrejunges
andrejunges force-pushed the port/close-mobile-641 branch from 88c430d to 35e1f43 Compare August 3, 2026 14:39
@andrejunges
andrejunges merged commit c4ff1bf into close-main Aug 3, 2026
@andrejunges
andrejunges deleted the port/close-mobile-641 branch August 3, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants