I'm looking for solutions but I has find nothing yet. My app receives only VoIP pushes and after iOS 13 I'm not able to receive push when the app is in background mode anymore. I looked other questions but I was not able to solve my problem with solutions proposed. There's someone who can help me?
On iOS 13.0 and later, incoming Voice over IP calls must be reported when they are received and before the didReceiceIncomingPush() method finishes execution, using the CallKit framework, or the system will terminate your app.
Repeatedly failing to report calls may prevent your app from receiving any more incoming call notifications.
Basically, you can no longer use VoIP pushes for non VoIP messaging, and will need to use regular push notifications for those.
I read this announce but in my app for particular types of push VoIP I can't use function reportNewIncomingCall()
because it requires params like: uuid, handle, hasVideo ecc.
And these params are not present in the payload.
Since iOS 13 you can only use VoIP pushes for reporting incoming calls. For pushes that are not incoming calls, you must use other alternatives (take a look at this answer here).
Repeatedly failing to report calls may prevent your app from receiving any more incoming call notifications.
From my tests, it seemed to block all VoIP pushes after failing to report only 2 or 3 times, and it would stay blocked for around 24h.
because it requires params like: uuid, handle, hasVideo ecc. And these params are not present in the payload
If you receive a VoIP push for a new incoming call, but stil don't have the required info you listed above, you can initialize the call with "dummy" values, and later update them. As for example, setting the remoteHandle to CXHandle(type: .generic, value: "Connecting...")
and later updating it with the correct value:
cxCallUpdate.remoteHandle = CXHandle(type: .emailAddress, value: "[email protected]")
cxProvider.reportCall(with: callUid, updated: cxCallUpdate)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With