We try to develop a VOIP app just like WhatsApp that may obtain incoming calls even when the app is killed or hasn’t began. We’re in a position to deal with incoming calls nevertheless we’ve run into a difficulty the place if we obtain a VOIP push for an incoming name that’s not lively, or has already been dealt with we obtain this error: “Terminating app on account of uncaught exception ‘NSInternalInconsistencyException’, purpose: ‘Killing app as a result of it by no means posted an incoming name to the system after receiving a PushKit VoIP push.'”
I’ve invoked the completion handler earlier than it leaves the tactic. Nonetheless I do not perceive why it needs me to report an incoming name regardless of the push payload is not for a incoming name however for updating one that’s not out there.
Is there a strategy to deal with this state of affairs with out working into this error? What’s the approach that iOS is anticipating that for this to be dealt with?
I’m pretty new to IOS growth so I’m nonetheless confused on the precise guidelines right here, so any explation could be a lot appreciated.
Thanks very a lot,
Kwasi Asante