Skip to main content

โ“ Frequently Asked Questions (FAQ) & iOS Test Cases

This guide provides a comprehensive 10-step testing checklist for iOS QA/Dev validation and quick solutions to common iOS CallKit & PushKit integration issues.


๐Ÿงช QA Integration Test Cases Checklist (iOS)โ€‹

Before deploying your iOS VoIP application to TestFlight or App Store production, execute these 10 verification scenarios on a physical iPhone:

Test IDTest ScenarioSteps to ExecuteExpected ResultPass/Fail
TC-01Foreground Incoming CallCall the extension while app is open and unlocked.Native Apple CallKit banner or full-screen UI appears with caller name & number.[ ]
TC-02Background Incoming CallPut app into background (Home screen) $\rightarrow$ Call extension.Native CallKit rings with Accept & Decline buttons.[ ]
TC-03Lockscreen Incoming CallLock physical iPhone $\rightarrow$ Call extension from another phone.PushKit wakes device; full-screen native Apple CallKit UI rings with slider/buttons.[ ]
TC-04Terminated / Killed AppForce-quit app from App Switcher $\rightarrow$ Call extension.High-priority VoIP push launches app silently; CallKit rings normally.[ ]
TC-05Answer Incoming CallTap "Accept" or slide to answer on CallKit.Call connects, microphone un-mutes, clear two-way audio starts, call timer counts up.[ ]
TC-06Decline Incoming CallTap "Decline" / "Reject" on CallKit.Call terminates immediately (603 Decline), ringing stops on caller device.[ ]
TC-07Early CancellationCaller hangs up while iPhone is still ringing.Ringing stops immediately, CallKit dismisses without ghost ringing.[ ]
TC-08Mute / UnmuteTap Mute on CallKit or in-app UI during active call.Audio is muted (remote side hears silence), then resumes cleanly upon unmuting.[ ]
TC-09Speaker ToggleToggle speaker audio route during active call.Audio seamlessly switches between iPhone receiver and loudspeaker.[ ]
TC-10GSM Cellular InterruptReceive a cellular GSM phone call while in an active VoIP call.CallKit puts VoIP call on hold gracefully; VoIP audio resumes after cellular call ends.[ ]

๐Ÿ› ๏ธ Common iOS Pitfalls & Quick Solutionsโ€‹

1. ๐Ÿ”ด Incoming call does not ring on iOS Simulatorโ€‹

  • Cause: iOS Simulator cannot receive PushKit VoIP pushes and does not generate APNs push tokens.
  • Solution: Always test incoming calls on a physical iOS device (iPhone/iPad).

2. ๐Ÿ”ด App crashes immediately upon receiving an incoming call pushโ€‹

  • Cause (Apple Policy): iOS strictly requires that every PushKit push notification must report an incoming call to CallKit via CXProvider.reportNewIncomingCall within a few seconds. If an app receives a VoIP push and fails to report a call, iOS terminates the process immediately.
  • Solution:
    • Ensure your AppDelegate inherits PitelVoIPDelegate and calls super.application(application, didFinishLaunchingWithOptions: launchOptions).
    • The SDK automatically handles PKPushRegistryDelegate and reports the CallKit incoming call immediately.

3. ๐Ÿ”ด Push notifications stopped working after several monthsโ€‹

  • Cause: Apple VoIP Services Certificates (.p12) expire every 1 year.
  • Solution: Check certificate expiration date in Apple Developer Account. Renew the certificate, export a new .p12 file from Keychain Access, and upload it to the Pitel Portal.

4. ๐Ÿ”ด One-way audio or no sound after answeringโ€‹

  • Check 1: Info.plist: Ensure NSMicrophoneUsageDescription is present in Info.plist.
  • Check 2: Audio Session: If your app uses custom audio players (e.g. AVAudioPlayer, AVPlayer), ensure you do not deactivate the shared AVAudioSession during an active VoIP call.
  • Check 3: NAT / Network: Test on 4G/5G mobile network to verify whether corporate Wi-Fi is blocking UDP RTP audio packets.

5. ๐Ÿ”ด Outgoing call fails or drops immediatelyโ€‹

  • Cause: The destination number passed to PitelVoIP.makeCall(to:) is incomplete. PJSIP requires a complete SIP URI to route media and signaling packets to the registrar/PBX.
  • Solution: Always format the target as a valid SIP URI:
    let outgoingCallId = "sip:\(destExt)@\(domain):\(port)"
    PitelVoIP.makeCall(to: outgoingCallId, callerName: "Agent \(destExt)")

6. ๐ŸŽจ How to customize CallScreen colors, logos, and button texts?โ€‹

  • Solution: Configure PitelVoIP.customCallConfig in your AppDelegate before calls occur:
    PitelVoIP.customCallConfig = PitelCallConfig(
    colors: PitelCallConfig.Colors(
    background: Color(red: 0.1, green: 0.1, blue: 0.12),
    cardBackground: Color(red: 0.15, green: 0.15, blue: 0.18),
    textPrimary: .white,
    buttonBackgroundActive: Color.orange.opacity(0.2)
    ),
    texts: PitelCallConfig.Texts(
    callingText: "Connecting...",
    incomingText: "Incoming Call..."
    )
    )