How to intercept and parse incoming calls via an app

浪子不回头ぞ 提交于 2019-12-11 12:06:23

问题


How does Truecaller intercept incoming phonecalls on the iphone to display caller ID?

I didn't think this was possible from within the app?

Specifically, if I wanted to build this functionality, what protocols would I go about using?

http://www.truecaller.com/how-it-works


回答1:


 On an iPhone, without jailbreaking it:
    - you cannot intercept a call in any way
    - you cannot determine the phone number nor the caller ID identifying information regarding the call. Even if you could there
    is no way to alter what is displayed on the call screen
    - you cannot block the call
    - your program can get a notification when a call is being made/terminated etc. But only if your app is executing in the
    foreground at the time of the call or if the app is in the
    background and has a relevant background mode (even then you can
    only know there is a call in some circumstance, depending upon what
    you're doing in the background and what state your in etc. Its too complex to describe the exact situation here briefly)



回答2:


True Caller doesn't do that on iOS as it isn't supported with the native SDK. See their FAQ:

http://www.truecaller.com/support , specifically the "Why don't I receive live caller ID?" Section under "iPhone/Windows Phone". If you must though, try looking into a solution for jailbroken devices.




回答3:


It's impossible to "intercept" calls. It is possible to handle the "background event call" when a iPhone get's a call. That said, Truecaller doesn't intercept calls. More info can be found on their website.



来源:https://stackoverflow.com/questions/21737541/how-to-intercept-and-parse-incoming-calls-via-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!