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

    Joined:
    Nov 16, 2006
    #1
    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!
     
  2. macrumors 65816

    Joined:
    Aug 24, 2005
    #2
    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

    Joined:
    Apr 22, 2005
    #3
    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