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
0 answers

'Bad file descriptor' error from URL session data task on Apple Watch?

I'm working on an independent watchOS app and I'm testing on the Apple Watch Ultra simulator as well as a couple of real Apple Watch Ultra devices (both have active cellular data service (AT&T), are within 3 feet of their paired iPhones and…
bmt22033
  • 6,880
  • 14
  • 69
  • 98
0
votes
2 answers

How to find out, if permission to READ heartrate using HealthKit on watchOS is given?

So I have an watchOS app where users can track their outdoor activities and that includes heartrate. All of that is working fine, but in support we sometimes get users that complain that the app is not tracking their heartrate. And in almost all the…
Georg
  • 3,664
  • 3
  • 34
  • 75
0
votes
0 answers

In WatchOS, how to prevent a List from passing tap events to a tappable view?

I'm trying to set up a carousel list on WatchOS. Each row in the list has a Toggle in it. I want the user to have to tap the Toggle itself to interact with it; however, the list row seems to be passing any taps anywhere on it to the toggle. This…
tattar8
  • 11
  • 2
0
votes
1 answer

Is there an way to use @Published in separated class?

Im new to Swift and Im trying to create an workout WatchApp, I have 2 pages, the initial page that will show the last activity and a button to start workout, and I have another page that will show the current workout. And I created a WorkoutSession…
0
votes
0 answers

NWPath.status shows unsatisfied on device, statisfied on simulator

I am encountering an issue when attempting to verify access to the internet from WatchOS on a physical device. Running the code below on a physical device always shows "Not Connected." However, running on the simulator shows "Connected." import…
0
votes
0 answers

WatchOS Notifications Firing Late

We have a watchos app that uses notifications to display time sensitive information to the users. We are using UNTimeIntervalNotificationTrigger(timeInterval: 1, repeats: false), our usernotification center looks like this func…
0
votes
0 answers

WatchOS SwiftUI App Keeps Opening on Wrist Raise

We have a SwiftUI watch app that has the workout processing background mode. Every time our users raise their wrist the app opens. I understand that this is one of the abilities granted by Apple with the given background mode for active workouts. I…
0
votes
0 answers

How to resolve swift NavigationLink for iOS 16+

I have this code that allows users to enter a code into the Apple Watch and once the user data is collected, it should navigate the user to a different page. The struggle is that the NavigationLink does not always work. I get this error message…
SamIAm
  • 51
  • 3
0
votes
0 answers

SwiftUI TextField on WatchOS Autofill One Time Passcode

I am trying to autofill a TextField in SwiftUI with a one time passcode from Messages. The following code works on iOS, but I am working on a standalone watchOS app and wondering if it can get any better there. Here is the code I…
haplo1384
  • 1,206
  • 1
  • 12
  • 29
0
votes
1 answer

In a SwiftUI watch app, is it possible to handle crown rotation without reloading a view?

I'm creating a game for WatchOS 8 using SwiftUI along with SpriteKit which uses the crown for rotating a sprite. I have the crown position tracked in a @State variable via the .digitalCrownRotation() method. The problem is whenever that variable…
dmjman
  • 1
  • 1
0
votes
0 answers

Losing return button after changing navigation type to horizontal

I'm changing view with: interfaceController.pushController(withName: "CarInfoController", context: context) in my VisitHistoryCellController. When I go to CarInfoController, there is a default return button to go back. After that I have a few…
Marcel Kopera
  • 179
  • 11
0
votes
1 answer

Independent watchOS app stuck in Core Location authorization loop?

I'm working on an independent (standalone) watchOS app which requires access to precise location data in both the foreground and the background (so it needs "Always" access). I created the app as a brand new independent app using Xcode 14.3. The…
bmt22033
  • 6,880
  • 14
  • 69
  • 98
0
votes
0 answers

WatchOS - Apple Watch displays complications but iPhone does not

I have an iOS app with an embedded WatchOS component. On WatchOS 9, which is supported by Apple Watch SE and Apple Watch Series 8, I can select complications from both the watch and the iPhone. However, on my Apple Watch Series 3 running WatchOS…
Maks Maxx
  • 231
  • 2
  • 7
0
votes
0 answers

How to get vo2_max and location in wear os using health services

I used health service to get vo2_max and location by starting an exercise. suspend fun startExercise(healthServicesClient: ExerciseClient) { val dataTypes =…
neeraj s
  • 11
  • 2
0
votes
1 answer

Local SPM library with SPM plugin generating file linked to iOS and watchOS targets causes Multiple commands produce error

I'm creating a watchOS app which depends on an iOS app. Both those apps have their corresponding targets. Both targets link my local SPM library, which have single target. This target calls R.swift plugin which generates file in the output…