PDA

View Full Version : Can an iPhone app know when an incoming phone call is coming?




ctznpark
Jul 11, 2010, 12:45 PM
hello,

Apologies if this is an obvious question:

Can an iPhone app be alerted when an incoming phone call/message is coming?

Thanks in advance for any help!



LastLine
Jul 11, 2010, 01:03 PM
Pretty sure this is a yes though I've never dealt with it as it's not relevant to my apps. Not so sure you can actually do anything about it though.

admanimal
Jul 11, 2010, 03:27 PM
If your application is in the foreground, its app delegate will receive a applicationWillResignActive message, but I don't believe there is a way to determine whether the message was sent as a result of an incoming call or a text message.

If your application is not in the foreground, there is no way to know.