简体   繁体   English

在应用程序运行时阻止 Iphone 中的呼叫

[英]Block calls in Iphone while application running

I need help, working on iPhone app using phoneGap 0.9.6.我需要帮助,使用 phoneGap 0.9.6 开发 iPhone 应用程序。

while using app I want to block all incoming calls because i do not want the application to be interrupted.在使用应用程序时,我想阻止所有来电,因为我不希望应用程序被中断。 Can any one help.?任何人都可以帮忙。?

No, you can't do this with any public APIs.不,您不能使用任何公共 API 执行此操作。

However, your application delegate will be notified when a call comes in, and you can prepare for this (save data, pause, etc.).但是,当有来电时,您的应用程序委托会收到通知,您可以为此做好准备(保存数据、暂停等)。

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.也许您可以检测到飞行模式并要求用户切换到飞行模式(如果他们没有)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM