-
Notifications
You must be signed in to change notification settings - Fork 75
Description
The app crashes immediately or shortly after receiving a VoIP push notification. The crash is triggered by PushKit because the app failed to report the incoming call to CallKit in time. This follows Apple's requirement that every VoIP push must result in a CXIncomingCallUpdate.
Environment
OS Version: iOS, iPadOS
Device: iPhone, iPad
"@twilio/voice-react-native-sdk": "1.6.1"
"react-native": "0.81.1",
"react": "19.1.0",
Crash Analysis
The crash occurs on Thread 0 (Main Thread).
Exception Type: EXC_CRASH (SIGABRT)
Termination Reason: SIGNAL 6 Abort trap: 6
Relevant Backtrace:
3 PushKit -[PKPushRegistry _terminateAppIfThereAreUnhandledVoIPPushes]
6 PushKit __73-[PKPushRegistry voipPayloadReceived:mustPostCall:withCompletionHandler:]_block_invoke
Full Backtrace: link
Steps to Reproduce
Launch the app (or keep it in the background/locked).
Trigger an incoming call via Twilio.
Observe the app crashing before or during the call interface appearing.
Expected Behavior
The app should catch the VoIP push, report it to CallKit using reportNewIncomingCall(with:update:completion:), and then invoke the PushKit completion handler.
Actual Behavior
The system detects that a VoIP push was received but not handled according to Apple's strict policy, leading to an immediate SIGABRT.