how to detect if a call was picked up?

Discussion in 'iOS Programming' started by cgbhat, May 12, 2009.

  1. cgbhat macrumors newbie

    Joined:
    May 11, 2009
    #1
    How do we detect if the dialled party has picked up the call?
    Could you please let me know where to look for appropriate documentation.

    Thank you!
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. BlackWolf macrumors regular

    Joined:
    Apr 9, 2009
    #3
    well, I guess you could estimate it. store the time when the application is interrupted, and afaik the application gets relaunched after the call is finished. if only little time has passed you can assume that the call failed ... but of course that's not always true.
     
  4. fishkorp macrumors 68020

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #4
    Your app can't talk to the phone app. Once your app exits for a phone call, it stops running. Your app is just passing a message to the phone app telling it to make a call, your app isn't actually making the call.
     
  5. Niiro13 macrumors 68000

    Joined:
    Feb 12, 2008
    Location:
    Illinois
    #5
    The best you can do is know when a phone call came in while your application is open. In applicationWillResignActive:, you typically save data so when it returns to your application after the call, the user doesn't lose their data.
     
  6. cgbhat thread starter macrumors newbie

    Joined:
    May 11, 2009
    #6
    if I need to record a conversation, how do I know that the call has actually gone through?
     
  7. BlackWolf macrumors regular

    Joined:
    Apr 9, 2009
    #7
    you cannot record conversations because your app is not active while the call is.
     
  8. fishkorp macrumors 68020

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #8
    You would have to start the app AFTER you make and connect to the call. You can record your end of the conversation, I'm not sure if you can record the person on the other end though, I doubt it. If call recording were allowed, there'd probably be a dozen or more call recording apps in the App Store. Some states have laws strictly prohibiting recording phone calls without consent of the other party. So an app like this would be illegal in many areas.
     
  9. emt1 macrumors 65816

    Joined:
    Jan 30, 2008
    Location:
    Wisconsin
    #9
    Note to self: Don't download any apps written by cgbhat.
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
    Also don't answer calls from anyone who's downloaded cgbhat's apps. :D
     
  11. cgbhat thread starter macrumors newbie

    Joined:
    May 11, 2009
    #11
    :) I think one of the Nokia handsets does give this facility..
     
  12. eddietr macrumors 6502a

    Joined:
    Oct 29, 2006
    Location:
    Virginia
    #12
    In general iPhone apps are more restricted than apps running under Symbian or Windows Mobile or even Android.
     

Share This Page