首页 > 解决方案 > 是否可以从一个 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上重定向吗?

请让我们知道您的想法。

谢谢你,

标签: ioswatchkitapple-watch

解决方案


推荐阅读