Muhammad Irfan
Muhammad Irfan

Reputation: 280

How to map a webview in iPhone app to an Apple Watch app

I am new to apple watch development. I have a web view in my iOS app. How can I map this web view to my Apple Watch app?

Upvotes: 2

Views: 2227

Answers (2)

EhTd
EhTd

Reputation: 3270

You can't have a webView on the watch. The recommended thing to do is handoff your URL so they can open it at the iPhone.

Check: http://www.fiveminutewatchkit.com/blog/2015/3/23/how-to-use-handoff-in-your-watchkit-app

Upvotes: 2

Andr3a88
Andr3a88

Reputation: 689

On WatchKit you have WKInterfaceMap class that allows to display a non-interactive snapshot map (rendered on the device and displayed on the Watch). Also you can add up to 5 annotations, a tap on the map opens Maps application on Watch

Upvotes: 0

Related Questions