Commit 4e2af13
fix(callkit): add voip background mode + mic permission so incoming calls work
Incoming voice calls were unusable: the CallKit screen flashed the caller's
name, auto-dismissed, reappeared as 'Unknown', and couldn't be answered.
Root cause: the app's UIBackgroundModes was missing 'voip', so callservicesd
DENIED creation of the CallKit call source and reset the provider
(providerDidReset → CallManager.handleCallKitReset → currentCallUUID=nil +
callState=.ended). Found via the simulator's com.apple.calls.callkit unified
log ('Denying creation of CXXPCCallSource … Not accepting connection'); the
device diag.log only showed the effect (providerDidReset).
- Info.plist: add 'voip' (+ 'audio') to UIBackgroundModes; add
NSMicrophoneUsageDescription (the 'no audio' half — mic capture needs it).
'voip' is just an Info.plist key, no provisioning capability required.
- Tests/interop/voice_caller.py: headless LXST caller (Sideband's
ReticulumTelephone, wire-identical) that dials the sim's telephony dest to
reproduce the incoming-call/CallKit path on the simulator — where CallKit
runs, so the bug + the framework deny reason are observable (unlike on device).
Verified on sim: with the fix, reportIncomingCall succeeds + callservicesd
'Created CXXPCCallSource' — no deny, no providerDidReset.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f853b6d commit 4e2af13
2 files changed
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments