twilio / voice-quickstart-ios

Twilio Voice Quickstart for iOS with Swift
MIT License
183 stars 97 forks source link

VOIP notification not receiving on incoming call #514

Closed hgomnist closed 2 years ago

hgomnist commented 2 years ago

Description

I am using this quickstart app's code in my app for calling. I have enabled background mode and voip in the capabilities, but I am still not receiving call VoIP notifications. Everything looks okay from the console.

Voice iOS SDK

Xcode

14.0

iOS Version

16.1

iOS Device

iphone x

bobiechen-twilio commented 2 years ago

Please make sure you are following the example code in the quickstart, especially the part that initiates the PushKit instance in the frontmost component of the app (AppDelegate for example), that way the PkPushRegistry instance can be created to handle the VoIP push notifications when the app is launched from the previously terminated state.

Please reach out to the Twilio Support with a Twilio Call SID (you can find them in the Twilio developer console) if you believe the call is successfully made but the push notification is never delivered to the mobile client, which rarely happens without an error being logged in the developer console.

-bobie