Questions tagged [watchos]

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with iOS, which is the operating system for Apple's mobile devices, but shouldn't be confused with it.

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with , but shouldn't be confused with it.

Currently, the Apple Watch is the only device that runs watchOS. Its API is called WatchKit (see ).

Helpful links

1236 questions
0
votes
1 answer

Cannot add a complication to an existing watchOS project

I have an existing watchOS app. It's deployment target is 6.1. I added a new widget extension by going to File -> New -> Target -> Widget Extension. I did NOT check the "Include Configuration Intent". In the "Embed in" drop down I chose the WatchKit…
Monica Granbois
  • 6,632
  • 1
  • 17
  • 17
0
votes
0 answers

Complication blank when locked

My apple watch complication (widgetKit) is blank when the watch is locked. Don't know where to search for the issue so I don't know what code to provide. Timeline Provider or SwiftUI View?
Jonas Lang
  • 213
  • 1
  • 2
  • 12
0
votes
0 answers

How to use CloudKit fetching async await functions when app is inactive state on watchOS?

When app is in active mode I start fetching records: func fetchRecords() async throws -> -> [CKRecord] { let container = CKContainer(identifier: "id") let privateDatabase = container.privateCloudDatabase let zone = CKRecordZone(zoneName:…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

Background URL session upload task behavior in watchOS?

I’m working on an independent watchOS app which is primarily designed to to collect and periodically send location updates to a server. The UI features a toggle that allows the user to turn this capability on or off at their discretion. The typical…
bmt22033
  • 6,880
  • 14
  • 69
  • 98
0
votes
1 answer

Changing all toggle's states (on/off) with 2 buttons

I am new to the WatchOS world and because of that I am in need of some help getting past a point where, even with tutorials, I seem to not be able to do what I am needing to do. I have a simple watchOS app. Basically its a list with toggles and 2…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
0 answers

Sharing watchOS widgets in a watch face

With ClockKit, when sharing a complication to another Apple Watch, watchOS called handleSharedComplicationDescriptors(_:) on the CLKComplicationDataSource. Is there a similar method somewhere in WidgetKit?
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
0
votes
1 answer

SwiftUICharts not changing color on bar chart

I am trying to build a watchOS app that has charting and I can't use Swifts built in charts because I need to support down to version 7 and swift charts are only available for watchOS 9+. So instead I am using a library I found…
Neglected Sanity
  • 1,770
  • 6
  • 23
  • 46
0
votes
0 answers

How can apps like Autosleep get days of historical motion sensor data?

I want to replicate some of the functionalities of sleeptrakcing apps like AutoSleep. Apparently I can not open the app for a day or two, and when I open it up, it can accurately access the sensor data on my Apple Watch to see if I'm moving or not…
0
votes
1 answer

Unable to place Bool value in a toggle in swiftui

Hey all I have been trying to fix this issue for 2 days now and just can't seem to get what I am lookinhg for. My working code: struct User: Decodable { let name: String let description: String let isOn: Bool } struct ContentView: View…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
1 answer

Shell Script with iOS & WatchOS Identifier changes

This can modify all PRODUCT_BUNDLE_IDENTIFIER to abc. However, how can i modify for these two iOS identifier an watchOS identifier with a different values? sed -i -e "s/PRODUCT_BUNDLE_IDENTIFIER =.*/PRODUCT_BUNDLE_IDENTIFIER" = abc;/g" text.txt { …
wong john
  • 55
  • 4
0
votes
1 answer

Why My SwiftUI List does not update elements on the list?

This is my sample, completely possible to test example: import SwiftUI struct Category: Identifiable { var name: String var color: Color var id = UUID() init(name: String, color: Color) { self.name = name self.color…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

Background task on watchos throws an error because there is no bktaskapp file

When it's time for a scheduled background task I get error [bg_app_refresh] -[WKRefreshBackgroundTask _userInfo]_block_invoke:199: Reading userinfo data from path:…
Loppik
  • 328
  • 2
  • 8
0
votes
0 answers

How to not use title with SwiftUI Picker for watchOS?

As you can see, the views are not centered because there is a space for Title (which is empty). How can I use it without title to not preserve space for it? PS I don't want to add offsets for Texts. Here is the code for the first part of the…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
1 answer

How do you incorporate WKInterfaceSKScene into a watchOS Starter Template App?

I'm trying to create a Apple Watch game using Xcode 14.2 and watchOS 9. Getting started creating a watchOS App seems pretty straight forward, and getting started creating a game project via the starter template seems easy enough. Trying to put…
acknapp
  • 125
  • 2
  • 8
0
votes
0 answers

WCSession activated successfully but session.isReachabilty always return false

******** Session Activated ****** Watch is paired true Watch is reachable false Watch app installed false I have established the session but not able to make connection reachability between the iOS app (UIKit) and watchOS app (swiftUI) This is my…