使用 Watch OS2 拨打电话 [英] Phone call with Watch OS2
问题描述
是否可以使用 Watch OS 2 从手表开始通话?我的 watch os2 应用程序中有一个按钮,我需要一种方法来从手表开始呼叫预编译号码,或者至少在 iPhone 中开始呼叫.谢谢
Is it possible to start a call from the watch using Watch OS 2? I have a button in my watch os2 app and I need a way to start a call to a precompiled number from the watch or at least to start the call in the iPhone. Thanks
推荐答案
是的,可以在 WatchOS 2 上使用:
Yes it is possible on WatchOS 2:
应用程序可以使用共享 WKExtension 对象的 openSystemURL: 方法发起电话呼叫或 SMS 消息.当您打开使用 tel 或 sms 方案的 URL 时,Apple Watch 会将该 URL 重定向到相应的系统应用程序进行处理.您还可以使用 openSystemURL: 方法打开 Passbook URL,以打开与 PKPass 对象关联的 URL.
Apps can initiate telephone calls or SMS messages using the openSystemURL: method of the shared WKExtension object. When you open a URL that uses the tel or sms scheme, Apple Watch redirects that URL to the appropriate system app for handling. You can also open Passbook URLs by using the openSystemURL: method to open the URL associated with a PKPass object.
这篇关于使用 Watch OS2 拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!