Check incoming call on iphone

I read about the CoreTelephony class and in this CTClass can check the caller and find the call status ....

But when and how to use it ...

I think my application goes into the background when the call starts.
please help or correct me ......

+3
source share
4 answers

This is not possible with the official SDK. The best you can do is determine if the user is in a call. You can do this by checking the frame size of the status bar.

[UIApplication sharedApplication].statusBarFrame
+4
source

If you ask if you can track phone calls in the background, you cannot in any situation.

, , , . currentCalls 'CTCallCenter', .

, , callEventHandler 'CTCallCenter'.

+2

, , .

0

It is not possible to get this information with the current SDK, most likely for privacy reasons. I would recommend filing a feature request with Apple (http://radar.apple.com), however I doubt what they might include in the future.

0
source

Source: https://habr.com/ru/post/1783565/


All Articles