![](/img/trans.png)
[英]Is there a way to make a hidden call from an iOS app through the telprompt URL scheme?
[英]remove the alert that pops up when calling from iOS app using telprompt://
我需要从我的iOS应用程序拨打电话,在用户完成呼叫后,我需要他回到他拨打电话的同一个应用程序屏幕上。 如果我使用以下代码
NSString *phoneNumber = [@"telprompt://" stringByAppendingString:@"999999999"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
我实现了我想要的,但得到一个不需要的警报,确认用户是否想要打电话。 我不想要这个。
如果我使用代码
NSString *phoneNumber = [@"tel://" stringByAppendingString:@"999999999"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
我没有得到警报,但我也没有回到我的应用程序屏幕.. !!
有没有办法在拨打电话时没有收到警报并在拨打电话后返回应用程序屏幕? 请帮忙..
你不能这样做,这是两种可能性。 telprompt
与警报和回调或tel
没有回来,没有警报。
如果用户离开应用程序拨打电话,则无法在此之后返回应用。 您的应用程序是后台运行的,手机应用程序是前置的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.