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

Swift: cancel local notification (scheduled on handset) from watch

I'm working on a project in which I schedule local notifications from the handset. The bulk of the app is on the watch so I'm trying to make it possible for the user to remove pending notifications from the watch. It seems that local notifications…
rharding
  • 551
  • 1
  • 3
  • 14
0
votes
2 answers

How to determine a 90 degree turn on Apple Watch?

I have the following case to determine the user's turn 90 degrees or more with only using Apple Watch. I wanted to do this with CLLocationManager and startUpdatingHeading, but Heading does not support watchOS. At the moment I'm at a dead end, and I…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
0
votes
2 answers

Share realtime accelerometer data from WatchOS to iOS app through Bluetooth

I want the realtime accelerometer and gyro data from the watch to be pushed to the corresponding iOS app in order to process the data as and when received. What are the different ways i can achieve this?
0
votes
1 answer

Type 'WatchManager' does not conform to protocol 'WCSessionDelegate'

I try use WatchManager.swift in exists project. import Foundation import WatchConnectivity class WatchManager: NSObject, WCSessionDelegate { func session(_ session: WCSession, activationDidCompleteWith activationState:…
TyM6JIep
  • 406
  • 8
  • 23
0
votes
1 answer

UserNotification not appearing on watch after wrist drop

I've been struggling with this for days and am desperate for some help. I am using Swift 4 and WatchOS 4. I have created a simple timer app which once the timer is up I send a local notification to alert me that the time is up. I also have started…
TazmanNZL
  • 372
  • 3
  • 16
0
votes
1 answer

Background URLSession on watchOS - what is the cycle?

I have a class with the delegates for a URLSession. I intend to use it with a background configuration. I understand that the handlers are called when a certain event happens, such as didFinishDownloadingTo. However, I do have the handle function on…
francisaugusto
  • 1,077
  • 1
  • 12
  • 29
0
votes
2 answers

Extend existing iOS app with hybrid watchOS app

I have an existing iOS application written in Swift. I want to extend this application with watchOS app. Is it possible to write hybrid app (for example Angular.js) for watchOS in this scenario?
MadTiger2409
  • 121
  • 1
  • 11
0
votes
1 answer

Does setting setNumberRows de-allocate the unneeded rows?

I'm using a WKInterfaceTable on WatchOS. If for example the table already has 5 rows, and I .setNumberOfRows(2, withRowType: "rows") so that it now only has 2 rows, does that mean that the 3 rows that are no longer visible are deallocated (or do I…
SudoPlz
  • 20,996
  • 12
  • 82
  • 123
0
votes
0 answers

SpriteKit Node adding child doesn't show until second time

I have a really simple task to update a node's color in a switch statement. EDIT: This code is in InterfaceController of a watchOS app. It receives a message from an iOS app with the color string to set as the fill color. The function with the…
0
votes
2 answers

Core Data fetch request with WatchConnectivity

I'm currently trying to get CoreData data from my iOS app to the watchOS extension. I'm using the WatchConnectivity Framework to get a dictionary via the sendMessage(_ message: [String : Any], replyHandler: (([String : Any]) -> Void)?, errorHandler:…
alexkaessner
  • 1,966
  • 1
  • 14
  • 39
0
votes
1 answer

Share data using WCSession between apple Watch and iPhone

Trying to share data from iPhone to apple watch using updateApplicationContext, transferUserInfo of Watch connectivity (WCSession) working in simulator but when trying same on device but its not working. Device : iPhone 6 plus(OS 11.1), apple…
Rohit
  • 9
  • 1
0
votes
2 answers

Logging and Saving a workout on Apple Watch when away from iPhone?

In my workout app, my users are typically away from their iPhone during their workout. I understand that with the new Series 3 Apple Watch + LTE this isn't an issue, however for Series 0 through Series 3 (WIFI only), does Apple take care of logging…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
1 answer

Watchkit check if WKInterfaceController is showing

In my Apple Watch app, I update the title text via self.setTitle("some title"). The problem is, that if that code gets triggered on Controller A while Controller B is present, A, the one in the "background", (e.g. in a hierarchical/Master-Detail…
user2875404
  • 3,048
  • 3
  • 25
  • 47
0
votes
0 answers

Error Code signing is required for product type 'WatchKit Extension' in SDK 'watchOS 4.0'

Since I update Xcode for IOS 11, I can't sign my previous app which include WatchKit OS. The error is : Code signing is required for product type 'WatchKit Extension' in SDK 'watchOS 4.0' What could cause such error message?
Yams
  • 11
  • 1
0
votes
1 answer

Swift: NSURL Session not working with watchOS

I'am using a NSURL Session to get the HTML code of a specific website. The following code works perfectly fine with iOS (in ViewController.swift) but it always fails in watchOS (in InterfaceController.swift). The code always print the else…
Adrian
  • 352
  • 1
  • 11