views:

758

answers:

2

I would like to track (run some code - or invoke function) when the user get an incoming call. for example: for every call the user receive I want to save the number, and check something during or before the call is answered (with a background process..)

until now without the background processing I couldn't find a way to do this. But I'm still not sure it is possible.

Anyone with information about the new sdk 4 can help me?

Thanks. Shai.

+1  A: 

There is nothing in the published material that would suggest that there's any change. The seven types of multitasking listed were:

  1. Background Audio
  2. Voice Over IP
  3. Location Services
  4. Push Notifications
  5. Local Notifications
  6. Task Completion
  7. Fast App Switching

Intercepting normal cell calls doesn't really fit into any of those categories.

Stephen Darlington
So I guess the answer is no.. It makes me hate Apple. they have too many restrictions for their products. Google is the best.
shaimagz
Apple takes privacy very seriously and a list of numbers that have called the device is not something Apple wants a third-party app to have access to.
Jeff Kelley
You asked a question and these people answered it. Just because you don't like their answers doesn't mean you need to be disrespectful.
helixed
+2  A: 

You can register for notifications using CTTelephony and your app will NOT terminate while the call is in progress. Control is returned to the app at the conclusion of the call and then you can get the phone number.

All of this is useless for apps to be published in the App Store until Apple approves use of the CTTelephony API.

pencaster