简体   繁体   English

拨打电话时出现电话故障或回叫断开

[英]phone call failure or disconnected call backs while making a phone call

On a button click I am making a call inside my app by using the following code 在按钮上单击,我使用以下代码在我的应用程序内拨打电话

NSString *phoneNumber =@"telprompt://123-4567-890"; 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

I want to do some working if the call is failed or disconnected (might be due to low balance or network signal problem). 如果呼叫失败或断开连接(可能是由于余额不足或网络信号问题所致),我想做一些工作。 Is there any delegate for call disconnect or failure for doing this? 是否有任何代表可以进行呼叫断开或连接失败? Any help will be appreciated. 任何帮助将不胜感激。

不会,一旦您将功能移交给电话应用程序,您的应用程序就会置于后台,并且只有在用户手动返回到应用程序后才会被激活。

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

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