Questions tagged [apple-watch-complication]

Complications are small elements that appear on the watch face and provide quick access to frequently used data.

From the docs:

About Complications
Complications are small elements that appear on the watch face and provide quick access to frequently used data. Users can customize most watch faces and install the complications that they want to see. The system provides built-in complications for weather information, upcoming calendar events, the user’s activity, and many more types of data. Apps can also add support for complications and display app-specific data.

170 questions
33
votes
2 answers

Where and When to get data for Watch Complication

After working with complications for a few days, I feel confident saying the following about the update process for updates that happen at a prescribed interval: The system calls requestedUpdateDidBegin() This is where you can determine if your…
El Tea
  • 1,116
  • 11
  • 19
21
votes
1 answer

iOS WatchOS - what is the difference between WatchKit App and WatchKit App extension?

I'm trying to create an iOS WatchOS5 complication and am seeing a number of tutorials and apple documentation. They talk about: WatchKit App WatchKit App extension What is the difference between iOS WatchKit App and WatchKit App Extension? If I…
21
votes
2 answers

What is the flow for updating complication data for Apple Watch?

I've been following a lot of tutorials on the internet to learn how to set up the complication. I have no problem getting the complication set up as expected. Until the initial timeline entries expire. After 12 hours, I do not know how to update it…
bkSwifty
  • 2,467
  • 3
  • 21
  • 48
14
votes
1 answer

Error message in Xcode when working with watch complications

When executing template.headerTextProvider = CLKSimpleTextProvider(text: header) in ComplicationController, I receive a whole number of similar error messages which I have not found a way to resolve so far: objc[4499]: Class…
11
votes
2 answers

Complication freezes Apple Watch when customizing

i am trying to create complication for watchOS2. I have created new target for my iOS application - with Glances and Complications I want to have only one Modular Large Complication. When I run trying to set complication Watch freezes (on both…
9
votes
1 answer

Updating complication with Swift 3 and background task

For watchOS 3, Apple suggests updating the complication with WKRefreshBackgroundTask instead of using getNextRequestedUpdateDate. How can I determine the time between two updates using the new approach? I would only hack my data requesting (from an…
8
votes
1 answer

Scheduling complication updates

I have a custom complication on Apple Watch that I am trying to get to update once an hour. Each hour it should ping an API endpoint and if the data has changed from the last check, the complication should be updated. Here is what I currently have…
user1054922
  • 1,917
  • 2
  • 20
  • 34
8
votes
1 answer

WKRefreshBackgroundTask cleanupStorage Error attempting to reach file

Whats this error I get when making a URLBGTask in WatchOS4 on the Simulator? 2017-09-28 16:05:26.452999+0900 MiFollowers WatchKit Extension[4628:4012814] [bg_app_refresh] -[WKRefreshBackgroundTask cleanupStorage]_block_invoke:213: Error attempting…
8
votes
1 answer

Creating Complications for Apple watch

I know how to create the basic watch complications. I want to create complication like native Battery one (Circular Ring). How can I fetch live data for the complications, maybe API call, or data from iPhone? Can I create more then one same…
Parth Adroja
  • 11,417
  • 5
  • 35
  • 65
8
votes
2 answers

How can I add complications to my EXISTING Xcode project?

How can I add complications to my EXISTING Xcode 7 project? Looking at WWDC video 2015 session 209 the way shown to add complications is to create a new project and click on Include Complication. This works fine for that case but how can I add them…
mm24
  • 8,150
  • 11
  • 65
  • 159
7
votes
3 answers

Apple Watch complications are not reliably updated

I have an iPhone app that sends data from the iPhone app directly to the watch face to be displayed as a complication. I use the WatchConnectivity framework to create a WCSession to send the data to the watch from the phone. My data is stored in a…
7
votes
2 answers

Get Data to Complication: ExtensionDelegate not Called

(It looks like this issue has been encountered by others in previous weeks, but there haven't been any solutions that I've found.) I'm trying to do a really basic thing: Get data from either my iOS app or my Watch app to my Complication…
Sergio Prado
  • 1,160
  • 1
  • 16
  • 32
6
votes
3 answers

WatchOS3 Complication that launches App

I would like to create a complication for watchOS 3 that will simply launch my App. I have used XCode to create the ComplicationController: class ComplicationController: NSObject, CLKComplicationDataSource { // MARK: - Timeline Configuration …
Greg Robertson
  • 2,267
  • 1
  • 13
  • 29
6
votes
1 answer

watchOS - Show realtime departure data on complication

I have an public transport app with realtime departure data for trains. I would like to add a complication that shows the departure time of the next train. Is it possible to show (or refresh) realtime data on a complication? For example, showing "3…
6
votes
1 answer

How to update Watch Complication only when the watch is awake, to not use up the daily budget

I have a server that keeps 2 booleans. These booleans change every 15 seconds. Whenever I wake my Apple Watch, I want the complication to show the current state. How can I do it withough exhausting the budget early on? The best way would be to fetch…
Novellizator
  • 9,169
  • 9
  • 38
  • 58
1
2 3
11 12