iOS 是否可以在后台自动拨号?

Is it possible to auto-dial in background on iOS?

是否可以在 iOS 上以编程方式在后台进行调用?我一直在使用此代码在我的应用程序中拨打电话:

NSString *phoneNumber = [@"tel://"stringByAppendingString:mymobileNO.titleLabel.text];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

Phone 调用由 Phone 应用程序处理,该应用程序分配了 tel:// 的 URL 方案。您不能只使用 iOS 库拨打一个号码并留在自己的应用程序中。

您可以做的是实施第三方 VoIP 解决方案,例如 Twilio