Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When exactly is CallKit's didActivate called?

Tags:

ios

swift

callkit

When exactly is CallKit's didActivate called?

How should I activate the session?

Official documentation and speakerbox sample do not explain it well.

like image 386
user1256821 Avatar asked Nov 21 '25 08:11

user1256821


1 Answers

The audio session is activated by CallKit; that's why they have a callback to tell you that it's been activated. You cannot activate the audio session yourself in the background.

You need to make sure that the audio session properties (category, mode, etc.) are set up when starting an outgoing call or answering an incoming call, because those things need to be set correctly before CallKit can activate the audio session.

like image 129
user102008 Avatar answered Nov 22 '25 23:11

user102008



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!