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

Are you required to submit an iPhone app with an Apple Watch app?

Can I develop just an Apple Watch app? Or is it required to develop both an iPhone (iOS) app and an Apple Watch app when submitting to the App Store?
brockhampton
  • 294
  • 2
  • 8
0
votes
1 answer

Open browser on Iphone from Apple Watch without companion app

How can I open a browser on the iPhone from WatchKit App, without a companion app on the iPhone? Something like this: UIApplication.shared.open(URL(string:"yourCustomLink")
0
votes
1 answer

Communication between individual WatchOS App and iOS App

Is it possible to set up a reliable connection passing data between an individual WatchOS App (i.e. that does not have a companion App) and an App of the same developer? The background is: We want to setup a WatchOS App that serves as heart rate…
j4rv1s
  • 23
  • 6
0
votes
1 answer

In a watchOS how to create a link to settings - general - wake screen

In a watchOS how to create a link, URL schema or deep-link to settings - general - wake screen? in my watchOS app, I run a test to find out if the wake screen is set to 15 seconds or 70 seconds. If the test fails when the app becomes inactive after…
Chris Maley
  • 157
  • 1
  • 8
0
votes
2 answers

Assign json data to labels

I'm beginner in swift programming and I want to assign the data to labels so I have this code below @IBOutlet weak var Infected: WKInterfaceLabel! @IBOutlet weak var Cured: WKInterfaceLabel! @IBOutlet weak var Deaths: WKInterfaceLabel! @IBOutlet…
0
votes
0 answers

WatchOS Scenarios

I'm beginning a project with WatchOS and need to be sure of a few capabilities. The watch app basically tracks some activity (movement) and sends bluetooth commands to custom hardware the end user has. So the basic requirements are: Does WatchOS…
Brad Martin
  • 5,637
  • 4
  • 28
  • 44
0
votes
1 answer

NSKeyedUnarchiver seems not to be reading anything

I'm trying to write an array of objects using NSKeyedArchiver. Here some parts from my code: EventStore.swift - holding the event array: class EventStore{ private var events: [EventItem] = [EventItem]() static let sharedStore =…
Pierre Anken
  • 308
  • 2
  • 16
0
votes
2 answers

How can detect watch os is ios app closed SWIFTUI

How can I detect with watch os when iOS app is closed? I use swift and watchConnectivity. Also I use swiftUI
user12037622
0
votes
0 answers

Coreml EXC_BAD_ACCESS (code=1, address=0x7d66228) Error on WatchOs

I have a coreml model created with Create ML. The model works on iPhone Simulator. However it doesn't work on watch simulator. What may be the problem? It gives the following error: EXC_BAD_ACCESS (code=1, address=0x7d66228) expression produced…
0
votes
1 answer

Import header file from iOS static library into watchOS static library?

I have written static library for iOS and added in the same project static library for watchOS for which I want to be pretty same as iOS one. I tried to add into watchOS header from iOS static library. But then it start to complain while it builds…
Dragisa Dragisic
  • 731
  • 2
  • 9
  • 19
0
votes
1 answer

Set function as variable in function declaration

I want to have function as variable in function declaration and than call that variable within declared function. How to do it in Swift? Pseudo code: let something = 0 func one() { print("one") } // Definition func two( funcVariable: Void,…
Win Fan
  • 77
  • 11
0
votes
1 answer

How to add an additional platform to a SwiftUI project

I've started with a SwiftUI project for iOS. Now I'd like to add tvOS and watchOS as additional target platforms. Of course all platforms should share the same models, APIs and some views. Some views will be different for each platform. How can I…
G. Marc
  • 4,987
  • 4
  • 32
  • 49
0
votes
1 answer

Is there a way for watch apps to support only new apple watches (4 and above)?

The title kind of says it all, I would like to develop an app only for new apple watches. The reason for this is that my app drains the battery of old apple watches really fast making it unusable and not meeting the energy efficiency requirement in…
Jelly
  • 4,522
  • 6
  • 26
  • 42
0
votes
1 answer

How to make scrollable and zoomable custom map on Apple Watch?

ViewRanger has a custom map which can be zoomed and scrolled on the Apple Watch. I didn't find any way to add extra layers to WKMapView. The emphasis is on "custom", so I want to have a topological map with my own tile /vector source. How can I…
gklka
  • 2,459
  • 1
  • 26
  • 53
0
votes
1 answer

SwiftUI toggle switches

I'm trying to implement a simple toggle switch but I'm having trouble saving the new toggle/switch status as when I change views and go back into the setting, it's defaulted back to the off switch. Can you tell me what I'm doing wrong? struct…
alamodey
  • 14,320
  • 24
  • 86
  • 112