开发者

IPhone SDK 4 background process for incoming call [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜