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

Checkk if Apple Watch is connected (Swift 5)

I have made an application for iOS device to get the heart rate data continuously from the watch. It is working as intended and I wanted to add a test case checking if the watch is connected (paired) with the device. My code for testing it is: if…
denistepp
  • 489
  • 7
  • 23
0
votes
0 answers

Unable to upload WatchApp build without iOS

As mentioned in the Apple documentation from watchOS 6.0 it is possibile to create stand alone apps. So it is possible to upload it without the relative iOS App? If yes, how can I do it? I'm unable to find a way. I have a project configured to…
Federico Malagoni
  • 722
  • 1
  • 7
  • 21
0
votes
1 answer

Xcode crashes when capabilities are added to Watch Extension

I just added HealthKit to my project for which you need to add the entitlement in the Signing & Capabilities Section to the respective target. However, whereas everything worked fine with my iOS App, Xcode crashed after adding the capability to the…
user12939415
0
votes
0 answers

Trying to use Swift HealthKit causes Apple WatchKit to crash when view loads?

I am trying to use the HealthKit API in my Apple Watch app but could not get it to work. I tried copying Apple's demo program SpeedySloth found…
Peter C
  • 23
  • 4
0
votes
1 answer

Preventing playback while recording using AVAudioEngine on WatchOS

I used AVAudioEngine to gather PCM data from the microphone in iOS and it worked fine, however when I tried moving the project to WatchOS, I get feedback while recording. How would I stop playback from the speakers while recording? var audioEngine =…
Audio Guy
  • 66
  • 4
0
votes
1 answer

Apple watch series 3 or series 5 for development device?

I wish to start developing apps for the apple watch and I wonder if I can get just the series 3 model without cellular capability as the series 5 is a little too pricey for me. What am I missing if I don't get the series 5 and cellular capability?
Barny Lui
  • 87
  • 8
0
votes
1 answer

healthStore.requestAuthorization() crashes Apple watch application

I'm trying to collect health data in my Apple Watch application but when I call healthStore.requestAuthorization my app always crashes. I have set NSHealthShareUsageDescription and NSHealthUpdateUsageDescription in Info.plist as required but it…
Peter C
  • 23
  • 4
0
votes
2 answers

How to remove separators from SwiftUI list in WatchOS?

How can I remove separators from SwiftUI list in WatchOS? I have gone through some answers in stackoverflow, they suggest to use UITableView.appearance().tableFooterView = UIView() UITableView.appearance().separatorStyle = .none Looks like they…
Rizwan Ahmed
  • 919
  • 13
  • 19
0
votes
1 answer

SwiftUI on WatchOS - code for launching Activity or Workout App?

I have a SwiftUI app in which I would like to show the "WorkOut" and "Activity" icons and launch those apps when the respective icon is tapped. Is this possible in WatchOS6 & SwiftUI? I know this "can I launch another app from within my app"…
Gerard
  • 1,807
  • 4
  • 13
  • 20
0
votes
1 answer

WatchOS 6 notifications not arriving

I'm wondering if there's a known bug in WatchOS 6.1.1 regarding local notifications triggered from the watch? I have an app that I developed about two years ago on watchOS 4. It would send local notifications from the watch during background…
rharding
  • 551
  • 1
  • 3
  • 14
0
votes
1 answer

Adding List Values in SwiftUI for TotalValue

Question here In the process of learning SwiftUI, this app is specifically just for WatchOS. So I'm creating a row view that then uses a carousel view. I have it so if you click on the list item it asks you to input your score. That, of course,…
0
votes
1 answer

Stream pausing when turning the wrist - watchOS / Swift

I'm creating an app for Apple Watch that is streaming audio through the watch speaker, but I noticed that when I'm turning my wrist and the screen become black the stream is pausing. There is something that I can do for avoid this problem? Thanks…
Pietro Messineo
  • 777
  • 8
  • 28
0
votes
0 answers

How to convert NSURLConnection -> NSURLSession

I'm struggling for quite some time to make this work. Code is in Objective-C and I do not know how to convert code below to use NSURLSession. Im getting error on return. - (NSData *)sendSynchronousRequest:(NSURLRequest *)request…
0
votes
1 answer

Wrong signature when using cocoapod on watchos extension

I have an iOS project with a watchOS extension. I added Alamonfire and Promisekit as dependencies of the watchOS extension, but the watchos app crashes on startup with the following error: dyld: Library not loaded:…
LucaRoverelli
  • 1,116
  • 1
  • 9
  • 15
0
votes
1 answer

Programmatically check if Apple watch is on wrist or not?

is it possible to check if user is wearing any wrist watch or not? So far I am unable to find any method in docs.
Haris
  • 1,822
  • 2
  • 22
  • 44