user471416
user471416

Reputation:

recognize that user call somebody

how to regognize that user call somebody from code?(means i have an app and want to do sth when user call somebody)

Upvotes: 0

Views: 103

Answers (2)

Pripyat
Pripyat

Reputation: 2937

This is not possible, not through code nor through notifications. You can't do anything to stop this, when a phonecall comes in, your application gets suspended, like as if you'd press home in iOS 4 and it will multitask if it has been programed to do so. Have a look at the UIApplication implementations for multitasking and do your work there.

Upvotes: 1

Ben
Ben

Reputation: 2992

You can't do that I'm afraid, firstly your app won't be running when they are calling someone and secondly you can't access the phone functions from the SDK. Might be possible with a background process on a jail broken phone.

Upvotes: 2

Related Questions