Skip to content

[iOS] Where is CallKit invoked on iOS? #94

Discussion options

You must be logged in to vote

Solved.
Unlike Android, we must write our own code to call reportNewIncomingCall() like TwilioPhoneExample/AppDelegate.m

// --- Handle incoming pushes (for ios >= 11)
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type withCompletionHandler:(void (^)(void))completion {
  // --- Retrieve information from Twilio push payload
  NSString *uuid = [[[NSUUID UUID] UUIDString] lowercaseString];
  NSString *callerName = [payload.dictionaryPayload[@"twi_from"] stringByReplacingOccurrencesOfString:@"client:" withString:@""];
  NSString *handle = [payload.dictionaryPayload[@"twi_to"] stringByReplacingOccurrencesOfString:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cl-k-takahashi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant