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

Apple Watch - is there a way to switch location provider from phone to watch?

As I understand it, when using location services on the Apple Watch it's up to the OS to decide whether to use the watch's GPS or a paired iPhone's GPS to determine the location. Is there a way of knowing which source is being used currently, or to…
0
votes
1 answer

How to get the device id from watch os swift

Hey I am developing a watch application and I want to get the device id of the device. But when I try to access using "UIDevice.current" it gives an error that UIDevice is not within scope. Am I doing something wrong or is it somehow restricted for…
SVG
  • 809
  • 6
  • 21
0
votes
1 answer

Value of type 'Measurement' has no member 'formatted'

I have just decided I want to make a watch app and am trying to familiarize myself with Xcode and Swift. So I decided to follow the Workout app for watchOs tutorial and the tutorial used this block of code. Text( Measurement( value: 47, …
Epicminetime
  • 183
  • 1
  • 1
  • 6
0
votes
0 answers

watchOS/CloudKit and background sync

I'm working on an Swift App which runs on iOS, macOS and watchOS (Xcode) using CloudKit (see code for the initialization of the CloudKit-Persistency-Container below). The app works great: the data gets synced via iCould on all devices. My problem:…
0
votes
1 answer

Watchkit Fall detection api

we have implemented the fall detection api using CMFallDetectionManager in watch app, does any one idea how to simulate this test?
Deepak Singh
  • 241
  • 3
  • 11
0
votes
0 answers

Can I switch from background mode to foreground mode from WatchOS?

I'm going to make an Apple Watch app. The function I want is to turn on the app automatically in certain situations. After setting the background mode first using WKBackground Modes, I want my app to turn on and run certain functions when my heart…
Hailey
  • 302
  • 1
  • 7
0
votes
1 answer

Any better way to change timer every 24 hours in the background - SwiftUI

I have a complex issue and if u make it clearer to me, I think it might help many lads. I am stuck due to impossibility to run a timer in the background (when app is closed). Moreover, I didn't find anything that could directly correspond to my…
0
votes
2 answers

What's the best way for Apple Watch to communicate with iPhone?

I am trying to find the best way for the Apple Watch to transfer data with the iPhone even when they are not near each other. An example would be how do water tracking apps sync data with the watch. Do they use CloudKit or something else?
NYBSZ37
  • 61
  • 7
0
votes
1 answer

How to update watch complications using CoreData + CloudKit with a private database?

My app uses a database synchronized between iPhone, watch and iCloud. Until recently, I used custom synchronization code. Particularly, when data changes on the iPhone, the watch complications were updated via…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
0
votes
1 answer

session.isReachable always false in background in watchos

I am using WCSession delegate methods to use watch app in background. All working fine in foreground but when I put app in background it doesn't responding and after that when I come back in foreground then delegate is called automatically and…
Punit
  • 3
  • 3
0
votes
1 answer

Updating WCSession's application context in both directions

I'm currently learning how to use WatchConnectivity to send data from the iPhone companion app to the Watch extension. I downloaded Apple's example project which demonstrates the different options to communicate between devices. For my specific use…
MrBr
  • 1,884
  • 2
  • 24
  • 38
0
votes
1 answer

Center text element in tabview

As I'm learning SwiftUI in the context of building a WatchOS application, I'm trying to achieve something that seems easy but haven't figured out yet. Looking at this screenshot I would like to have the text label ("Page 2") being displayed in the…
MrBr
  • 1,884
  • 2
  • 24
  • 38
0
votes
1 answer

WatchOS Complication

I have an array of 10 events, suppose current time is 10 am and the event will start at 11am. Each event is of 30 mins and gap between two events is of 30 mins. Now, I am able to show that all the required info on Watch Face correctly, i.e, when…
0
votes
0 answers

UpdateApplicationContext Not Being Called

It's my first time trying WatchConnectivity kit. When I attempt to send ApplicationContext from phone, my debug print indicates that updateApplicationContext is working correctly (with isPaired/reachable/isActivated/isWatchAppInstalled checked…
0
votes
0 answers

HTTP server on Apple Watch

Currently I am working on ability to start HTTP Server for my independent apple watch app. I did not find such option for now, is there a way at all to start Http server on Apple Watch not iPhone? Thank you for any suggestions in advance!
zhanch
  • 145
  • 1
  • 8