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 ......
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
If you ask if you can track phone calls in the background, you cannot in any situation.
, , , . currentCalls 'CTCallCenter', .
, , callEventHandler 'CTCallCenter'.
, , .
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.
Source: https://habr.com/ru/post/1783565/More articles:CodeIgniter - получение всех сообщений, кроме последнего из таблицы - mysqlHow to create single sign-on and profile for a network of three sites using Django? - pythonДвижение NoSQL - обоснование для SQL RDBMS - databaseКак сделать ссылку безпоказать указатель мыши вместо указателя выделения? - pointersSimple explanation of pointer C - cShould I call redirect () from my controller or model within MVC? - redirectHow can I access the SVN server remotely? - svnEclipse rcp disables the exit button in the eclipse application - buttonHow to show the amount of stocks available in Ubercart? - drupalFailed to load DLL 'iclit09b.dll' - .netAll Articles