Adam Levy
Adam Levy

Reputation: 97

Multiple WatchKit Apps For 1 iOS App

According to the Apple Watch Programming Guide, developers are only allowed to include 1 glance in their AppleWatch app. This creates a bit of a challenge for me since my app is an aggregate of different types of data so I'm not sure which data set to include in the glance.

That being said, could I get around this by creating multiple AppleWatch apps for my iOS app which would then allow me to create a single glance for each AppleWatch app?

Upvotes: 1

Views: 501

Answers (2)

phillfarrugia
phillfarrugia

Reputation: 654

No. Confirmed one Watch app per iOS app.

There is no support for multiple WatchKit apps per iPhone app at this time.
- Apple's WatchKit Evangelist

You can implement multiple Glance views depending on the user's context (time and location) using WKInterfaceGroups and hiding/unhiding when necessary.

See my answer to the exact same question here https://stackoverflow.com/a/28214768/3588917

Upvotes: 2

j-techsha
j-techsha

Reputation: 474

Will a timer work for you? For example, when a certain time elapsed, you can change the UI of the glance to show a different type of data? When a user taps a glance, you will be able to tell what data is showing in the glance at the time and pass relevant contextual data and redirect them to an appropriate interface controller?

"When the user taps a glance, Apple Watch launches the corresponding WatchKit app. Normally, launching the app displays its main interface controller. If you want to display a different interface controller at launch time, call the updateUserActivity:userInfo: method from your glance interface controller and use it to provide contextual information about what the glance is doing. At launch time, your app can use that contextual data to display a different interface controller."

Upvotes: 0

Related Questions