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

Query HealthKit in Widget on Apple Watch

I want to query steps from HealthKit every 15mins to update my Complication via WidgetKit. In the Timeline Provider getTimeline() I execute the query, create one timeline entry with the steps and set timeline refresh policy to .after(now +…
0
votes
0 answers

How to use WKExtendedRuntimeSession and WCSession together

I need watchOS program to run in background and communicated with iOS. Can I use WKExtendedRuntimeSession and WCSession together? Or is there another way to solve the problem? I didn't find a solution.
0
votes
0 answers

SwiftUI - WatchOS - NavigationView - Layout issues

I am writing a simple watchOS app using SwiftUI but I am having issues to proper layout it. This is the code: struct ContentView: View { var body: some View { VStack(spacing: 0) { HeaderView() NavigationView { …
Fab
  • 1,468
  • 1
  • 16
  • 37
0
votes
0 answers

watchOS SwiftUI - does it make sense to add TimeLineView if the app supports background mode?

According to Apple for the apps that support the background mode the views will continue to update even if the screen is in always on mode. I can confirm this to be correct, but the update schedule is underwhelming. I would prefer the view to be…
Ivan Ičin
  • 9,672
  • 5
  • 36
  • 57
0
votes
1 answer

Reading the physical action button on Apple Watch Ultra

I downloaded and tested the example you can find here: https://github.com/KhaosT/WatchActionButtonExample It works fine in terms of creating the intents so your app can be linked to the physical button in WatchOS settings. I can add "print"…
Zifigo
  • 196
  • 8
0
votes
0 answers

Programmatically disable "Mirror iPhone Alerts From" for our app

Our app schedules local notifications with custom sounds (30s), which is not supported on Apple Watch. By default, when a user has an Apple Watch and the phone screen is off, the local notifications are redirected to the watch, with a standard…
thankyoussd
  • 1,875
  • 1
  • 18
  • 39
0
votes
0 answers

Apple WatchOS publish/broadcast Heartrate service using Bluetooth, How to?

I want to build a watch os app that reads heart rate and broadcasts it as a service using Bluetooth BLE, Is this possible? Additional maybe useful info: I will try to listen to this service from an Unreal game on iOS. Edit: I tried building a watch…
Paperbag
  • 1
  • 3
0
votes
0 answers

How to communicate between watchOS and iOS, where both targets are built in different projects

I know how to communication between watchOs and iOS, where both targets are in the same project. But if watchOS is a project and iOS is another one, how to communicate between them?. Maybe we can use app identifier?
Manh Hai
  • 45
  • 5
0
votes
2 answers

How to implement vertical scroll page on watchOS with SwiftUI

I want to implement a vertical scroll page like system workout app. Now I can get a similar effect with this:     TabView…
Haozes
  • 352
  • 2
  • 12
0
votes
1 answer

Is it possible to have a ClockKit complications target and another WidgetKit complications target in the same workspace?

My app was originally an iOS app with a dependent watchOS extension. The watchOS extension used ClockKit complications. Recently, I started to upgrade the app: I added a watch-only target based on SwiftUI. This works. Now I want to migrate from my…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
0
votes
0 answers

iOS HealthKit - How to get all my last HKWorkoutActivity in 1 Query

I wonder if there is an option the get all my last activity from Apple HealthKit in 1 Query? It is clear to my how to fetch only one type of activity (for example Yoga) HKQuery.predicateForWorkouts(with: .yoga) But I dont understand if there are…
Android0077
  • 401
  • 1
  • 6
  • 12
0
votes
0 answers

WatchOS Complication data from ObservableObject not updating

In the Complication for my WatchOS app I show 2 variables: Date Counter (start value = 1) The Complication has to be updated when a user manually updates the counter variable by clicking on a button. Currently I am using…
Kcode
  • 150
  • 7
0
votes
0 answers

HealthKit to detect that a person is in trouble

I would like to leverage ios's HealthKit to write a watch and phone app that would detect that its user may be in trouble (fall/shock/standing still). I do not want to gather the various sensor data myself because it would not work if the app is…
anon
0
votes
0 answers

SwiftUI - am I an iOS widget or watchOS app?

I have a SwiftUI view which was originally only used for an iOS widget. I would like to re-use this view now for a watchOS app. @Environment(.widgetFamily) var widgetFamily The widgetFamily surprisingly was set to ".accessoryCircular". Is this some…
Mick
  • 954
  • 7
  • 17
0
votes
0 answers

How to display UIImageView.animationImages under SwiftUI on watchOS?

I have a watchOS app that still uses storyboard. It displays a table where each row shows UIImageView.animationImages. Apple now suggests WatchKit storyboards are deprecated in watchOS 7.0 and later. Please migrate to SwiftUI and the SwiftUI…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116