简体   繁体   中英

How to trigger watchkit app from the parent iphone app?

Is there a way to open a WatchKit app programmatically from the host iPhone app?

If this is not supported, can I trigger a local notification that shows up on Apple Watch and tapping it would open the corresponding WatchKit app?

You cannot open the WatchKit extension from the iOS app. The only way to alert the user on the Watch is to send a remote or local notification. However, this will not work if your iOS app is in the foreground because the notification will simply route to the iPhone and not the Watch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM