Reputation: 325
I need help, working on iPhone app using phoneGap 0.9.6.
while using app I want to block all incoming calls because i do not want the application to be interrupted. Can any one help.?
Upvotes: 0
Views: 2033
Reputation: 1023
You can't. See also http://www.iphonedevsdk.com/forum/iphone-sdk-development/20349-how-do-i-detect-call.html
Upvotes: 0
Reputation: 118681
No, you can't do this with any public APIs.
However, your application delegate will be notified when a call comes in, and you can prepare for this (save data, pause, etc.).
Upvotes: 4
Reputation: 54212
Is it possible? I don't think you can block calls in application.
Maybe you can detect Airplane mode & ask user to switch to Airplane mode if they haven't.
Upvotes: 0