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

WatchOS CLLocationManager Simulator Issue

Whenever I try using the Map() object in swiftui it never asks for location permission and always gives these errors: Compiler failed to build request PSO error: Target OS is incompatible: library was not compiled for…
jacob
  • 11
  • 2
0
votes
0 answers

JSON parsing is not working in apple watch but working in simulator

i am trying to parse json from an url it is working fine in watch simulator but not working in apple watch. watch have active internet connection with wifi. All other apps which use internet are working fine in watch. Console response: Complete…
Code cracker
  • 3,105
  • 6
  • 37
  • 67
0
votes
0 answers

How does a TimeLineView get it's context.cadence?

I'm following this Apple Sample Code almost exactly except for some subtle changes in the WorkoutManager class. However, when testing on the simulator in Always On mode, Apple's app switches its context.cadence from .live to .seconds, whereas my…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

SwiftUI: Any way to place a view in a Navigation Bar on watchOS?

Is there anyway currently to place a SwiftUI View in a Navigation Bar in WatchOS? I want to put the TimeLineView duration counter from Build a workout app for Apple Watch into the nav bar but can't figure out a way to do it especially given there…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
0 answers

Writing json string using NSOutPutStream is not working in WatchOS

i have network layer written in objectiv-c for the watchOS. writing a json string on NSOutPutStream is not working, but the same thing is working in iOS project. //writing json string on writeStream NSString *sendString =…
Code cracker
  • 3,105
  • 6
  • 37
  • 67
0
votes
0 answers

Control SwiftUI iOS view from watchOS app with WatchConnectivity

I have created a video recorder which works fine if I use it on a phone. Now I want to control it (open that view/camera and start/stop recording from the watch). What I've did is I have created an ObservableObject and added a state for the…
breq
  • 24,412
  • 26
  • 65
  • 106
0
votes
0 answers

Finishing a HKLiveWorkoutBuilder workout with lots of HKWorkoutActivity instances is very slow

I'm using the new watchOS 9 HKWorkoutActivity in my interval training app (Intervals Pro) for each interval. It's a great addition since all the intervals now show in the Apple Fitness app, however, if the workout has lots of activities then saving…
jeffbailey
  • 137
  • 6
0
votes
0 answers

How can i get the size of the status bar for any apple watch in swfit ui?

this question here Apple Watch: Status bar height is very similar to what im asking for however that was 7 years ago, and seems to be for objective C, i need to get this information in swift ui view, is that even posible to get using a watchOs…
user19788214
0
votes
0 answers

How to handle cloudkit remote notification on Apple Watch?

This is my App on AppleWatch: @main struct AppleWatch_App: App { @WKExtensionDelegateAdaptor(ExtensionDelegate.self) var delegate } and this is my ExtensionDelegate: import WatchKit import UserNotifications class ExtensionDelegate: NSObject,…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
0 answers

ClockKit -- failed to call completion handler in -[CLKComplicationDataSource getLocalizableSampleTemplateForComplication:withHandler:]

I'm writing a SwiftUI-based Apple Watch app with a ClockKit-based complication. There is a need for, at certain times, the complication's timeline to be fully invalidated and re-generated from within the main Watch app. For this, I use…
tattar8
  • 11
  • 2
0
votes
0 answers

Continue API-Request when Apple Watch is in sleep mode SwiftUI

I am working on a standalone Apple Watch App with SwiftUI. My problem is, that I am starting a API-Request on a button click. But when the user is moving his hand down, the display turns off or is going into always-on mode. My API request also…
khsadkj
  • 1
  • 2
0
votes
1 answer

Xcode Embed WatchOs Content - change app name for one scheme based

On my build phase i have the following step : My app have many scheme (flavors) how to change the name here which seems not be editable ? I would one based on my current scheme. For example : ClientA.app in build/Debug-clienta-watchos ClientB.app…
Eng
  • 1,617
  • 2
  • 12
  • 25
0
votes
0 answers

WatchOS App using Firebase not working if started via Testflight

I'm currently developing a watchOS-only App which uses some Firebase functionality. If I build the App directly on my watch via Xcode everything is working fine. However if I upload it to Apple Store Connect via Product -> Archive and then install…
mountain1
  • 1
  • 1
0
votes
1 answer

How to switch to asynchronous fetching image from string url on watchOS?

My current code for fetching image from String with SwiftUI is: import SwiftUI struct NetworkImage: View { let url: URL? var body: some View { if let url = url, let imageData = try? Data(contentsOf: url), let uiImage = UIImage(data:…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
0
votes
1 answer

My SwiftUI Button is not tappable for minus image systemName

This is a fully reproducible example View to show the problem: import SwiftUI struct SwitchView: View { @State private var timeMode = 1 var body: some View { HStack(spacing: 0) { Button { timeMode = 0 …
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358