twilio / voice-quickstart-objc

Twilio Voice Quickstart for iOS with Objective-C
MIT License
39 stars 24 forks source link

Update PushKit device token decoding #181

Closed bobiechen-twilio closed 5 years ago

bobiechen-twilio commented 5 years ago

The iOS SDK that comes with Xcode 11 beta is updating the data structure of the PushKit device token. This PR updates the way of decoding the device token data returned from the pushRegistry:didUpdatePushCredentials:forType: callback. The same decoding implementation works for both iOS 13 SDK (Xcode 11) and earlier (Xcode 10 and iOS 12)

Note that with the coming release of iOS 13, using PushKit without CallKit (the ObjCVoiceQuickstart project) will cause runtime exception and application crash.