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.

207 questions
34
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…
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,206
  • 12
  • 21
22
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…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
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…
matejOS
  • 379
  • 2
  • 9
9
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
  • 2,101
  • 2
  • 23
  • 37
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

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
  • 13,198
  • 5
  • 37
  • 71
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
  • 9,280
  • 12
  • 75
  • 170
7
votes
1 answer

How set white color text in Modular Large Complication?

I can't set white text color for body1TextProvider and body2TextProvider. Only grey color available. My code: let modularLarge = CLKComplicationTemplateModularLargeStandardBody() modularLarge.headerTextProvider = CLKSimpleTextProvider(text:…
Metman
  • 336
  • 3
  • 14
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,197
  • 2
  • 16
  • 33
6
votes
1 answer

Complication Family support- don't show Complication Family if not supported

I'm wondering how to not show a Complication Family if I'm not supporting it. Example: Extra Large watch face In ComplicationController.swift's getLocalizableSampleTemplate and getCurrentTimelineEntry methods I just pass in a handler(nil) when…
SRMR
  • 3,064
  • 6
  • 31
  • 59
6
votes
1 answer

tintedImageProvider does not provide tint color in Graphic Complication

I am trying to create Graphic Complications for my Apple Watch app (namely Graphic Circular) and I've run into some problems. To support both multicolor and tinted watch faces, I use the following code to provide image for my complication: let…
1
2 3
13 14