Question

I have requirement block the incoming call, outgoing call and sms. so any one share your knowledge how to do that task.

Then give some samples or sample code using CoreTelephony framework in iPhone SDK.

Thanks,

OTHER TIPS

Your requirements are not possible on iOS. You can not block calls/SMS/MMS in any way.

CoreTelephony will only allow your app to detect incomming calls if it is running in the foreground. You will not be able to detect the number of the person calling. This ment to be used in for example a VOIP client so that it can pause the VOIP conversation when a phone call some in.

You cannot interacte SMS/MMS at all.

I believe blocking a call/sms is not possible in IOS . But you can handle it using application delegate method -

- (void)applicationWillResignActive:(UIApplication *)application

Refer: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html

pls read Apple docs before asking features. Apple clearly states You cannot alter calls, in or out, in any way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top