Post

Replies

Boosts

Views

Activity

Reply to iOS 15 issues with background VoIP notifications
In case anyone else is banging their head against a wall with this. I will provide my solution. It seems that voip notifications need to report to call kit within seconds so it has to be done right away. I was using an API call to get the call details first and then reporting the call. This will cause an error to show up that says the same thing I just explained. If you keep sending notifications without reporting right away after about 4 times Apple will block the notifications from coming in. From your notification server you will see 200 success but nothing on the app side. I had to delete the app and install again to see the error message again, then reporting the call to CallKit right after seems to work. Background and killed state. I did use a serial queue (not main). Good luck to anyone else out there facing this issue as the threads are bare bones on answers. Hope this helps.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
Reply to iOS 15 issues with background VoIP notifications
Follow up, if anyone is having issues when implementing a voip solution and you notice that the call doesn't work when the phone is in the locked screen state but when the device is locked it works look no further. Again I have dealt with this issue and it involves CallKit. If you initiate a call in CallKit but it doesn't have an audio configuration before it actually passes the call then you will not have audio and most VOIP solutions will drop the call. To solve this, simply configure the audio before sending the call to CallKit. So when a call comes through as a VOIP notification configure the audio before calling the "reportNewIncomingCall" function. Hope this helps, Cheers!
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’23