iOS:通话失败时返回应用 [英] iOS: return to app when the call fails

查看:74
本文介绍了iOS:通话失败时返回应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的情况类似于用户拨打电话,并且如果呼叫结束,则应该返回到我的应用程序,而不是本机电话应用程序。我能够通过使用

  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@ telprompt:// 123456789] ]]; 

但这似乎仅在呼叫成功且结束时发生以自己的方式或手动进行。但是通话失败时,这不会返回我的应用程序。我非常期待这个解决方案。

解决方案

telmpmpt:// 不受官方支持,因此当Apple决定更改或删除此方案时,您的应用将不再运行。



由于它不是官方的,因此



因此,没有,没有选择,当呼叫失败时,无法返回到您的应用程序。 / p>

My app has a scenario like when the user make a call and if the call ends, then it should return back to my app, rather than the native phone app. I was able to achieve this by using

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://123456789"]];

but this seems to happen only when the call is successful and ended in its own way or manually. but this is not returning to my app when the call fails. I am badly looking forward for a solution for this.

解决方案

The telprompt:// is not officially supported, thus the when Apple decides to change or remove this scheme your app will not longer function.

Because it is not official there is also not documentation and you will not be able to influence the work of the scheme.

So no, there is no option to return back to your app when a call fails.

这篇关于iOS:通话失败时返回应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆