ios - 是否可以从一个 Apple Watch 应用程序重定向到另一个 Apple Watch?
问题描述
我想从我的手表应用程序中打开 Apple Default Watch 应用程序。就像,在我的手表应用程序中,我添加了按钮,点击后,我想打开一个特定的手表应用程序。比如,开按钮点击打开Wether Watch App、Breathe App、Stocks Watch App等等。
我已经查看了许多 URL,但没有成功。我在 Watch Interface Button 上尝试了以下代码,但它不起作用。
@IBAction func openSpecificWatchApp() {
if let breatheURL = URL(string: "com.apple.mobilecal"){//com.apple.mobilemail //com.apple.Breathe
let wkEXt = WKExtension.shared()
wkEXt.openSystemURL(breatheURL)
}
}
1. 可以在特定的Watch App上重定向吗?
请让我们知道您的想法。
谢谢你,
解决方案
推荐阅读
- imagemagick - 如何使用 ImageMagick 的识别实用程序格式化日期和时间?
- cryptography - 使用 ECC 生成私钥/公钥对:椭圆曲线
- java - 吸气剂工作不正常
- node.js - Sequelize.js 设置器方法不起作用
- php - 如何解决使用 php pdo 将所选选项存储到数据库中的错误
- templates - 敲除模板绑定项未定义
- r - R - 在数据集的所有行中应用一个函数(combinevar)
- windows - 如何在 Windows Anaconda 上安装 Dryscrape?
- c# - 在“垂直”而不是“水平”空间上操作 LINQ 查询
- java - Java Selenium Webdriver:是否有某种形式的 get 用于implicitWait,如果没有,为什么不呢?