VRAwesome
VRAwesome

Reputation: 4803

How to open Apple's default app from the other app on Apple Watch?

I have developed watchOS app that is only for Apple Watch not integration with iPhone app. From that need to open Apple's default app. such as :

On iPhone we are open any app via URLScheme or open(url:), but how can we achieve same functionality on watchOS?

on iPhone :

let url = "abc.com"
if UIApplication.shared.canOpenURL(url) {
    UIApplication.shared.open(URL, options: nil) { (finished) in
            
    }
}

Upvotes: 0

Views: 176

Answers (1)

Mohammad Rahchamani
Mohammad Rahchamani

Reputation: 5220

There is no equivalent on WatchKit. You can use openSystemURL(_:) to make a call or send a message, but You can't open another app.

Upvotes: 1

Related Questions