hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
176 stars 299 forks source link

IOS app crashes when call is timeout #438

Open kevinZartek opened 9 months ago

kevinZartek commented 9 months ago

App crashes exactly when the incoming call is timed out ( call unattended ), crash is reported in testflight as PushKit: -[PKPushRegistry _terminateAppIfThereAreUnhandledVoIPPushes]

hiennguyen92 commented 9 months ago

Please make sure call complete https://github.com/hiennguyen92/flutter_callkit_incoming/blob/590d0396d48012f504b9f28d9d113ed7318d0531/example/ios/Runner/AppDelegate.swift#L87

kevinZartek commented 9 months ago

Yes i have added this in the end of the method PushRegistry didReceiveIncomingPushWith. DispatchQueue.main.asyncAfter(deadline: .now() + 1) { completion() }