开发者

How to detect an incoming call and start my app? [closed]

Closed. This question does not meet 开发者_如何学运维Stack Overflow guidelines. It is not currently accepting answers.

Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.

Closed 9 years ago.

Improve this question

I want to develop an iPhone callerID application. I have following challenges to develop

How to detect incoming call? Need to start my app when an incoming call occurs

Please help me out..I am new to iPhone development.

Thanks, Srikanth


You can't do this. iOS apps cannot launch themselves without direct user interaction, and incoming calls suspend any apps that are already running.


I'm fairly certain this would be impossible in the iOS framework. Incoming calls suspend any active application and take priority over other operations. Further more even if you did manage the overwrite the iOS app lifecycle I think it is highly unlikely that Apple would approve the application because it attempts to replicate the functionality of the Phone app's caller ID. Apple doesn't like it when you try to replace their products (Ask Google Voice). They may have started to loosen up a little on this (See Opera browser and Skype apps) but I think this one would get flagged and rejected.


Short answer: you can't.

Apps are started when a user requests it, so you can't tell an app to start when a call comes in.

And an already running app is suspended when a call comes in. You can't pick up any detail about the call.


No. Simply you cannot do that. There is no public API is available to do that. Your app will be in sandbox environment and your app will be suspended when a call comes in. You cannot access them in anyway.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜