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

Align View to Time on WatchOS using SwiftUI

I'm trying to align a view in SwiftUI the same way the new Workouts app for WatchOS 9 aligns with the time. I have found this StackOverflow thread, but it does the exact opposite, I need alignment in the vertical axis. So far I've tried the…
Empty2k12
  • 475
  • 12
  • 34
0
votes
0 answers

Shadow on WKInterfaceLabel?

I’m curious as to whether or not there’s a way to add a shadow to a WKInterfaceLabel in WatchKit? I’ve seen previous posts about this subject here, but they were back before NSShadow was added to Apple Watch. Now that it is, is it possible? Thanks!
David
  • 87
  • 12
0
votes
2 answers

WatchOS and iOS new .accessoryInline Widget does not display everything

I'm trying to made an WatchOS extension with the new type .accessoryInlineBut I don"t understand why I cannot have more than one stack in the main horizontal stack. See the invisible stack in the following commented code and in the WatchOS…
chepiok
  • 193
  • 12
0
votes
0 answers

watchOS background refresh not accessing CoreData?

I have a watch companion app that accesses CoreData through CloudKit and then chooses a random string from the data. It works perfectly, all of that is setup exactly as needed. So I know all of that is working. The issue now is I am wanting the…
0
votes
1 answer

After updating to Watch OS 9.0 my app is getting NSURLErrorNotConnectedToInternet error

After updating to Watch OS 9 my app suddenly cannot connect to the internet with my app using a NSURLSession. It gets an error "Path was denied by NECP policy " and NSURLErrorNotConnectedToInternet every time. But this still works fine on Watch OS 8…
Ray
  • 187
  • 1
  • 7
0
votes
1 answer

How Do I Change NavigationBar Color For WatchOS?

I am building watchOS app and I am trying to change navigationBar background color from black to transparent, but I am not able to find anything. I saw this question which was asked in 2015, according to which it is impossible to change…
Abu Bäkr
  • 313
  • 1
  • 2
  • 10
0
votes
0 answers

digitalCrownRotation not updating value on text

I am building a simple water tracking app, and I want to use the digital crown for increasing/decreasing the value of drunk water. However .digitalCrownRotation won't update the value. I have tried everything but without any luck. What am I doing…
Danielcraig
  • 121
  • 11
0
votes
0 answers

How do you get the attachment image from a local notification on the Apple Watch?

My Objective-C iOS app schedules a local notification that has a userInfo dictionary and one small JPEG image attachment. The image is attached like this: content.attachments = @[[UNNotificationAttachment attachmentWithIdentifier:myIdentifier …
Darkpaw
  • 31
  • 4
0
votes
1 answer

Left align some rows, right align others in WKInterfaceTable?

I'm trying to display a user's messages in a watchOS app and I'm using a WKInterfaceTable instance to do so. I would like outgoing messages to be right-aligned and incoming messages to be left-aligned but I can't get it to work. Here is the code I'm…
0
votes
1 answer

How do you configure accelerometer readings in real time AppleWatch

We are developing a health app where we need to keep track of user's accelerometer in real time. Which means we need to read accelerometer values when the screen is on and off. Is there a better way to do it other then initiating a…
ILarsonI
  • 1
  • 1
0
votes
2 answers

How to keep iwatch app active to transfer motion & health data

I am working on a application which needs accelerometer, gyroscope & pedometer data & also the heart rate. I am transferring this data from iwatch to iPhone then from iPhone I need to sync this data via MQTT protocol. Now my problem is that, once…
Naresh
  • 869
  • 8
  • 17
0
votes
0 answers

Is there an easy way for a global variable between IOS and WatchOS App?

This IOS app has the watchOS app included, the sending function works an is displayed on the watch, and the Counter counts on the IOS app, now I am wondering if there is an easy way to display the counted numbers on the watch, this is the…
treenera
  • 19
  • 3
0
votes
1 answer

OSLogStore on watchOS doesn't return entries

Hello. I'm developing a tightly coupled watchOS/iOS app. The customer needs to be able to write logs to text files, from both apps, in a hassle-free way. So I want to retrieve entries using OSLogStore, which works just fine on iOS: let store = try…
szagun
  • 123
  • 8
0
votes
0 answers

How to make POST API call with authentication header from watch app?

I want to make a POST API call with authentication header from watch app to fetch some data. Since, all the bearer tokens & user ID are encoded and saved in iPhone after login, how can I have access to those datas from Watch app? Is there any secure…
Anish
  • 595
  • 1
  • 4
  • 16
0
votes
1 answer

How to use the LDSwiftEventSource library correctly

I was looking for Server-Sent events on watchos and found https://github.com/launchdarkly/swift-eventsource this library. The only problem is that there is no documentation on how to use it correctly. Is anyone familiar with it. Let me know please.
Pjaks
  • 251
  • 1
  • 11