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

WatchOS: HKWorkoutSession ends whenever a second app like NRC or Runtastic is started

I am testing the SpeedySloth demo app from Apple: https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/speedysloth_creating_a_workout Well, this ends here, whenever a second app starts: // MARK: -…
0
votes
1 answer

WatchKit: How to trigger active background app like Music App on Watch other than HKWorkoutSession?

I read about HKWorkoutSession and they said that if I'm using HKWorkoutSession without using it for recording a workout app, it will be rejected on the App Store. So what else is there that can keep running the app in background activity? Examples…
Mardydu
  • 45
  • 1
  • 7
0
votes
1 answer

OnAppear and OnDisappear are not triggered on first view transition

I have a watchOS App which uses the following layout: NavigationView { if !HKHealthStore.isHealthDataAvailable() { ContentNeedHealthKitView() } else if !isAuthorized { ContentUnauthorizedView() } else { …
LuMa
  • 1,673
  • 3
  • 19
  • 41
0
votes
2 answers

Xcode complains: "LLDB provided no error string."

I get this error when deploying my watchOS App to my Apple Watch. It is impossible to deploy it successfully: "LLDB Provided No Error String" I tried cleaning the project and restarting all devices but nothing helped. I am using the latest Xcode…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
0
votes
0 answers

Live heart rate record time interval - WatchOS

I have created a watch app with live heart rate record, for that i have used the workout session and HKAnchoredObjectQuery to fetch the results. In this apple has mentioned that, every 5 seconds will update the heart rate value, but in my case it…
Velu
  • 21
  • 3
0
votes
1 answer

Sharing UserDefault between targets doesn't work

Sharing UserDefault between targets doesn't work. I have set App Group for both targets but the data is not available on watchOS. See my simplified code: On iOS: func application(_ application: UIApplication, didFinishLaunchingWithOptions…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
0
votes
1 answer

can't start workout session with HKWorkoutSession

I'm trying to start a workout session in Apple Watch with session.startActivity but the state remains NotStarted (1). even though, it seems like the workout did start since my app runs in the background and also my Watch shows the workout…
Yarden
  • 11
  • 3
0
votes
1 answer

How to have Text next to CLKRelativeDateTextProvider

I am building watchOS complications and i want to have a timer that counts down what i have made using the following: func createUtilitarianLargeTemplate(prayer: Prayer?) -> CLKComplicationTemplate { let myComplicationTemplate =…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
0
votes
1 answer

How do I get a ToolbarItem with primaryAction placement to display under the navigation bar on WatchOS in SwiftUI

I am trying to figure out how to hide the primaryAction ToolbarItem under the navigation bar in a watchOS app written in SwiftUI. Apple's documentation states In watchOS the system places the primary action beneath the navigation bar; the user…
spig
  • 1,667
  • 6
  • 22
  • 29
0
votes
1 answer

Can't get weight samples using anchored query

I'm working on a watchOS App as my first Swift/iOS project ever. I want to fetch the latest body weight sample and use it for some calculation. The result is presented to the user. As soon as a new sample is added, I want to update my UI as well. It…
LuMa
  • 1,673
  • 3
  • 19
  • 41
0
votes
0 answers

What data can you actually get realtime during an Apple Watch workout?

What data can you actually get during an Apple Watch workout? There seems to be a lot of different quantity type objects that you can request read access to but what can I actually get live from the Apple Watch during a workout session. These are…
Rohit Rajendran
  • 629
  • 9
  • 27
0
votes
0 answers

Is there anything similar to LocalAuthentication for iWatch applications?

On iPhone apps, if we want to authenticate app with default authentication which is using to unlock iPhone, Apple provides the framework called 'LocalAuthentication'. By using these we can authenticate our app via : Passcode Touch ID Face ID I…
VRAwesome
  • 4,721
  • 5
  • 27
  • 52
0
votes
1 answer

How do I change image when tapped on it watchOS app in SwiftUI

How do I change the image when it is tapped? This is my first iOS app, let alone a watch app. I'm trying to build a simple application, when I tap on the image, it should change to the next image. So far I have done this, and the first image (test1)…
imgkl
  • 1,013
  • 1
  • 7
  • 24
0
votes
1 answer

Prompting for App Store Rating directly from Apple Watch

How would you go about using the SKStoreReviewController API to prompt a user to submit a 0-5 star rating directly from the app on their Apple Watch? Is that even possible or is the prompt strictly iOS only?
Jet59black
  • 129
  • 1
  • 15
0
votes
1 answer

SwiftUI RectangularFullView - Aligning nested Stacks

I'm building a personal apple watch app, and I've just wrapped my head around complications. I've managed to get mine to display with the proper data, but the View is not aligning on the screen as I would like it. The stacks are aligning in the…
impo
  • 747
  • 1
  • 11
  • 37