Can an iPhone app know when an incoming phone call is coming?

Discussion in 'iOS Programming' started by ctznpark, Jul 11, 2010.

  1. macrumors newbie

    Nov 16, 2006

    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!
  2. macrumors 65816

    Aug 24, 2005
    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.
  3. macrumors 68040

    Apr 22, 2005
    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.

Share This Page