Skip to content

Seeing _terminateAppIfThereAreUnhandledVoipPushes errors in iOS crash logs #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
rcidt opened this issue Mar 6, 2020 · 2 comments
Closed
1 task done

Comments

@rcidt
Copy link

rcidt commented Mar 6, 2020

Bug report

  • I've checked the example to reproduce the issue.

Description

Some users in production are reporting their calls stop arriving after a few days. They fix this by uninstalling/reinstalling the app.

I believe this is being caused by app not handling VoIP Push Notifications on time. According to Apple, failing to handle VoIP Push Notifications repeatedly could cause iOS to completely ignore future VoIP Push Notification.

Repeatedly failing to report calls may prevent your app from receiving any more incoming call notifications.

Here is our code:

// Handle incoming pushes
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(PKPushType)type withCompletionHandler:(void (^)(void))completion {
    // Process the received push
    [RNVoipPushNotificationManager didReceiveIncomingPushWithPayload:payload forType:(NSString *)type];
    NSString *uuid = [[NSUUID UUID] UUIDString].lowercaseString;
    NSString *callerName = [payload.dictionaryPayload valueForKeyPath:@"custom.a.ani"];
    [RNCallKeep reportNewIncomingCall:uuid handle:callerName handleType:@"number" hasVideo:false localizedCallerName:@"" fromPushKit:YES];
    completion();
}

Versions

- Callkeep: 3.0.8
- React Native: 0.61.3

Logs

image

@rcidt rcidt changed the title Seeing _terminateAppIfThereAreUnhandledVoipPushes errors in crash logs Seeing _terminateAppIfThereAreUnhandledVoipPushes errors in iOS crash logs Mar 6, 2020
@manuquentin
Copy link
Contributor

Hi @rcidt do you have more details on this issue ?
Do you see something like Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push callback. in your logs ?

@danjenkins
Copy link
Collaborator

Recommend using the new completion handler code in #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants