如何在 Facetime(集成)通话后将我的应用程序发送到前台?
我正在尝试将 Facetime 集成到我的应用程序中,所以基本上我想做的就是按一个按钮拨打电话,完成后返回到我的应用程序。我知道目前 Facetime 还没有公共 API。
我现在正在做的是使用 Facetime 方案:
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"facetime://"]];
我有两个问题:
是否可以在字符串“facetime://”上方的 openURL 中使用,以便选择我想在 Facetime 中呼叫的人?!我尝试过,但发生的情况是 Facetime 已运行,但没有其布局,所以基本上我在屏幕上看到自己,但我无能为力。
如果不是第1点,因此我使用例如“facetime://[email protected ]”通话结束后是否可以返回我的应用程序?!我读到了有关多任务处理的内容,但我不知道如何在这种情况下管理它。
提前致谢 亚历克斯
I'm trying to integrate Facetime in my app so basically what I would like to do is to press a button making a call and when it finishes come back to my app. I know that for the time being there are no public API for Facetime.
What I'm doing at the moment is to use Facetime scheme:
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"facetime://"]];
I have two questions:
Is it possible to use in the openURL above the string "facetime://" in order to choose who I want to call in Facetime?! I tried it but what happens is that Facetime is run but without its layout so basically I see myself on the screen but I cannot do nothing.
If not point 1 therefore I use for example "facetime://[email protected]" is it possible to come back to my app once the call is finish?! I read about multitasking but I don't know how to manage it in this situation.
Thanks in advance
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要回答你的第二个问题,不,就像当你的应用程序开始通话时一样,在关闭通话后无法让你的应用程序回到前台。
对于第一个问题,您需要添加联系数据(电子邮件或电话号码)。
另请注意,
facetime://
url 方案适用于任何 iPhone/iPod Touch,即使它们无法进行 Facetime。如果设备不支持 Facetime,它只会显示空白屏幕。To anser your second question, NO just like when your app start a call there is no way to get your app back in the foreground after you close the call.
For your first question, you need to add the contact data (e-mail or phonenumber).
Also be aware that the
facetime://
url scheme will work on any iPhone/iPod Touch even if they can't do facetime. If the device does not have facetime support it will just show a blank screen.