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

Error code -1009 and "Operation not supported by device" when using URL(...) on watchOS

Let's say I have the following code: guard let URLData = URL(string: "https://www.bing.com") else { print("Unable to access \(URLString)") return } When I run this on my Apple Watch Series 7 (Connected to stable WiFi), it throws a bunch of…
PersonDudeGuy
  • 113
  • 1
  • 4
0
votes
1 answer

Transfer object via WatchConnectivity from iOS to watchOS

I am trying to transfer EventKit Data like EKCalendars / EKEvents / EKReminder from iOS to watchOS via WatchConnectivity. The connection works but I cannot push these objects directly in response. I also cannot use NSKeyedArchiver since EKCalendars…
Kevin Lieser
  • 951
  • 1
  • 9
  • 25
0
votes
0 answers

Is there a way to get my Apple Watch App to vibrate when the screen sleeps?

I own a Apple Watch series 3 and I made an app for it that vibrates every specified amount of seconds. I know haptics drain your battery but, regardless, its the purpose of my app. I tried to test it on my watch and I encountered a problem. When the…
0
votes
1 answer

Cannot infer contextual base in reference to member 'fractionLength'

I'm trying to follow this screencast on building an app for Apple Watch. I've updated Xcode to 13.3, but I'm getting an error that doesn't appear in the screencast. Cannot infer contextual base in reference to member 'fractionLength' Cannot…
Ashbury
  • 2,160
  • 3
  • 27
  • 52
0
votes
1 answer

How to reset the toolbar back to its original position

I'm trying to setup a toolbar in watchos which displays a button when I scroll the view down. Everything works, the button scrolls down and I can navigate to another page. When returning however, I would like the scrollview to be in the same…
Bjorn Morrhaye
  • 687
  • 9
  • 30
0
votes
1 answer

How to deactivate the WatchConnectivity session?

I am using Apple's WatchConnectivity framework to develop an iOS app with a companion WatchOS app. On iOS side, after I open the app, I need to manually activate the WCSession to communicate with the Apple Watch like this if ([WCSession…
yuchen
  • 237
  • 1
  • 10
0
votes
1 answer

Graph and Scroll View SwiftUI

Looking to have a Bar Chart in my View on watchOS and under it have two navigation links. The problem is the graph always ends up being smushed and if I wish to restore it to its unsmushedness I need to move it out of the ScrollView and VStack. I…
Dezkiir
  • 19
  • 4
0
votes
1 answer

watchOS 8.5: Invalid frame dimension (negative or non-finite)

So I'm trying to draw a bar chart using the code below: HStack(alignment: .bottom) { ForEach(0..
Dezkiir
  • 19
  • 4
0
votes
1 answer

Can't use URLSession with Swift on Watchkit

I have a problem when trying to fetch some data with swift on apple watch. When i try this code in Swift Playground it works well but when I put it in an WatchOS app it shows me this error : Error Domain=NSURLErrorDomain Code=-1202 "The certificate…
MaxBrt18
  • 63
  • 1
  • 9
0
votes
1 answer

Release Apple Watch app only without iPhone app

Situation: I have a Xcode project that included an iPhone app and a Watch App. Goal: Only release the Watch App Issue at I Tunes Connect: I get the message that I should upload product images for iPhone. But I don't want to launch the IPHone app in…
Leobalo
  • 1
  • 2
0
votes
0 answers

Question reguarding sending data from iOS to watchOS using WatchConnectivity

I have created an app for iOS that shows items from coredata in a list. I want to add an item to that list whenever a button in the watchOS app is pressed. I found the framework WatchConnectivity. I have gotten it to a point where an alert pops up…
Pablo
  • 13
  • 2
0
votes
1 answer

Can you get full (real-time) PPG signal from Apple Watch?

Does the HealthKit SDK allows you to get the PPG signal from the Apple watch in real-time? I am doing research on heart activity and really need to be able to extract that signal at high-frequency from a wearable device. Is there a way to get it…
P. B.
  • 33
  • 4
0
votes
0 answers

Swift Want notification when 10000 steps have been reached on watchos

I am making a swift watchos app that integrates with a user's step count,Heart Rate and oximeter as reported by the Health app.I would like to find an app that works with the watch to alert me when I've reached 10,000 steps. Any one please give me…
0
votes
0 answers

How many bytes can be sent in 1 second using Apple Watch Bluetooth (Apple watch 6)?

I am currently building watch connectivity between apple watch app and iOS app. At the start, I want to send over a view model (nested classes) to apple watch, possibly more than 100 objects in total. One thing I noticed is that my child view model,…
Michael
  • 370
  • 3
  • 11
0
votes
1 answer

Alternative to Stepper in WatchOS with SwiftUI

G'Day All from Brisbane, I have been starting to develop some trial watch apps and I came across something interesting and a bit odd. The SwiftUI Stepper is not available in WatchOS. This meant I had to modify my app code from the iOS version and…