IPhone SDK 4 background process for incoming call [closed]
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:
- Background Audio
- Voice Over IP
- Location Services
- Push Notifications
- Local Notifications
- Task Completion
- Fast App Switching
Intercepting normal cell calls doesn't really fit into any of those categories.
精彩评论