watchOS is the operating system for Apple Watch.

watchOS Documentation

Posts under watchOS tag

342 Posts
Sort by:
Post not yet marked as solved
3 Replies
467 Views
Just trying to gain some information here on the new beta. When updating to IOS 16 Beta do you have to update the watch to the new beta too? Or Can it stay on Watch OS 8.6. Have been lead to believe the battery drains on the watch with compassion IPhone on IOS 16 and the watch app doesn’t let you control the watch anymore it just shows the discover page? Is anyone able to confirm their experience with this? Thanks
Posted
by
Post not yet marked as solved
1 Replies
135 Views
Hello, I enjoyed the talk very very much. It's one of those talks where it would be useful to have the sample project and play around with it. Is there any consideration for the sample project to be added?
Posted
by
Post not yet marked as solved
0 Replies
114 Views
Hi all, I'd like to test the purchase and restore code I've written for an IAP for an Apple Watch app. The (physical) phone that the (physical) watch is paired with has a sandbox user logged in in the App Store settings. Whenever I try to buy the IAP I get the following error screen: Any suggestions on what I should be doing? Is it possible to test an IAP purchase with a sandbox user on an Apple Watch app? Thanks, Russ
Posted
by
Post not yet marked as solved
7 Replies
492 Views
Following the sample notes at https://developer.apple.com/documentation/widgetkit/creating-lock-screen-widgets-and-watch-complications, when I try to preview the Watch widget, I get an error saying: Cannot preview in this file WidgetEntryPointFactory' does not conform to NonUIEntryPoint RemoteHumanReadableError: Type 'WidgetEntryPointFactory' does not conform to NonUIEntryPoint (in framework at path /System/Library/PrivateFrameworks/ChronoCore.framework/Support/WidgetPreviewsExtensionAgent.bundle) ================================== |  MessageSendFailure: Message send failure for <ServiceMessage 187: update> App widgets preview fine though. Am I doing something obviously wrong?
Posted
by
Post not yet marked as solved
5 Replies
477 Views
Entry Point (_main) undefined for architecture x86_64, Anyone else getting this after updating settings request by xcode 14 and your watch app?
Posted
by
Post marked as solved
1 Replies
219 Views
I am updating my Watch games to use SwiftUI and am using a SpriteView to render my SpriteKit SKScene. However, my games now show the scroll bar at the top right of the Watch screen when I turn the Digital Crown. This didn't happen in the old version. Is there a way to hide the scroll bar? I see that ScrollView has a showsIndicators option to turn off the scroll bar, but I can't find this for SpriteView. Does anyone have a workaround to remove the scroll bar? This is the code I am currently using to show my GameScene.   @State private var crownPosition = 0.0   var body: some View {         GeometryReader { reader in       SpriteView(scene: GameScene(size: reader.size, crownPosition: $crownPosition))         .focusable()         .digitalCrownRotation($crownPosition)     }   } Thanks!
Posted
by
Post not yet marked as solved
1 Replies
108 Views
Airpods are traditionally working with Bluetooth, but making them connect to WiFi will make them sync with the Apple ecosystem. Also making the AirPods connect to iWatch which is cellular-enabled, will make the user leave the phone and go for a workout with just the iWatch and AirPods. Isn't it a great idea that Apple should be working on?
Posted
by
Post not yet marked as solved
0 Replies
164 Views
I want to add segments into a running HKWorkout. My understanding is that I should use the addWorkoutEvents method in my HKWorkoutBuilder. Here is a sample of my code: func saveSegment(forStep step: GymWorkoutEventStep) { let dateInterval = DateInterval(start: step.startDate ?? Date(), end: Date()) let metadata = [ HKMetadataKeyWasUserEntered: true ] let event = HKWorkoutEvent(type: .segment, dateInterval: dateInterval, metadata: metadata) builder?.addWorkoutEvents([event], completion: { success, error in print(success ? "Success saving segment" : error.debugDescription) }) } I’m trying to implement the same feature that the native Apple Watch “Workout” app has by adding a segment when a user double taps the screen. My code seems to work as I see “Success saving segment” in the console. However, once the workout is finished, the Apple Fitness app doesn’t show these segments. What am I missing? Also, is there a way to add distance and pace to each segment using MetadataKey’s or is this not an option? Thanks for any help you can provide.
Posted
by
Post marked as solved
1 Replies
115 Views
I have an app in the App Store which is free to download and has IAPs for unlocking features. I've created a slimmed down watchOS version of the app. I'd like to charge $.99 for the watchOS app while still leaving the iOS app free to download. Is this possible? Or do I have to assume the watchOS app must also be free and have an IAP in the watch app? Thanks, Russ
Posted
by
Post not yet marked as solved
0 Replies
144 Views
My app donate shortcut , shortcut type is NSUserActivity, everything work fine in iOS My app also have watch app, the Watch APP has been installed on my watch. When I run this shortcut on apple watch, I am prompted that the App is not installed I am 100% sure the Watch has this app installed How to solve this problem?
Posted
by
Post not yet marked as solved
1 Replies
199 Views
Would apple ever make the Apple Watch app available on iPad??? I know the answer is probably: never. But it is possible and I don’t see why they haven’t done it yet. If they want more money, make it only on iPad Pro. There are some exclusive software features to the iPad Pro.
Posted
by
Post not yet marked as solved
1 Replies
240 Views
My watchOS app crashes when I accept/change the microphone or Bluetooth permission from its companion iOS app. It crashes with the following message in the console. Message from debugger: Terminated due to signal 9 Please let me know a way to identify and fix the exact problem. here are my device logs: Device logs and crash report
Posted
by
Post not yet marked as solved
0 Replies
98 Views
iPhone 11 15.3.1 Apple Watch 6 44m 8.6 Xcode 13.4 MacBook Pro (16-inch, 2019) 12.3.1 Console 1.1 (6.0.7) I found this while I tried to use Logger API to debug the app for Apple Watch, that Mac's Console App does NOT stream Apple Watch, zero, nothing at all, even I check to including "Info" and "Debug" messages. However, streaming iPhone log in Mac's Console App has no issue. If I stream Apple Watch simulator though, the stream log information works. Is this normal?
Posted
by
Post not yet marked as solved
4 Replies
347 Views
Hello, I'm working on an Apple Watch/ iPhone/PC/Mac OS sport applications with different types of connectivity and i'm a bit stuck with the bellow issue. I'm trying to Resolve a Bonjour that is using NWBrowser on WatchOS 8.6 on Apple Watch SE with LTE and i encounter strange issues: First i'm setup a NWBrowser : NWBrowser(for: .bonjourWithTXTRecord(type: "_angry._tcp", domain: nil), using: parameters) Then, using : browser?.browseResultsChangedHandler = { [weak self] results, changes in Everything works well until here I'm gathering info form name and txt of the service found and ask the client if i want's a connection to service found . Using NWConnection to connecting to the found enpoint: NWConnection(to: endpoint, using: params) Here starts the issue In the stateUpdateHandler : connection?.stateUpdateHandler = { state in     switch state {     case .ready:      if let innerEndpoint = connection?.currentPath?.remoteEndpoint,        case .hostPort(let host, let port) = innerEndpoint { i'm checking the port and host where i'm getting the wrong informations, an IPV6 and a port that don't exists on the target server and a log in the console : 2022-05-22 15:54:33.146148+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_copy_synthesized_url Endpoint type is not an address or host, cannot synthesize URL 2022-05-22 15:54:33.319537+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.319604+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.319621+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.319636+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.319651+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.501821+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.501875+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.501892+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.501908+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching 2022-05-22 15:54:33.501923+0300 WatchKit Extension[956:609596] [] nw_endpoint_proxy_match_exception_to_endpoint Invalid proxy endpoint type 3 for matching I tried this on an apple watch simulator and a couple of real iPhone devices and everything works well, i'm getting the good port and host and no console errors/warnings. PS: All this are done during a running HKWorkoutSession to ensure that the app is kept active during different networking operations. What i'm doing wrong since is working fine on iPhone and WatchOS Simulator? Thanks , Angry Software
Posted
by
Post not yet marked as solved
0 Replies
107 Views
Hello, I would like to know if it is possible to create a table (WKInterfaceTable) that way, that it is possible to react on swipe gestures on specific elements of this table. I can create a swipe gesture recognizer and if I swipe on a table element a function in the interface controller can be triggered:     @IBAction func Swipe(_ sender: Any) {     } But I can not find the information from wich row index the event was send. Like in the function: override func table(_ table: WKInterfaceTable, didSelectRowAt rowIndex: Int) {} Is this possible? Thanks!
Posted
by
Post not yet marked as solved
0 Replies
175 Views
I'm trying to recreate the watchOS App Store layout however there are a few parts I am not how to recreate. When scrolling an Elliptical Style List the cells will "snap" up if you are scrolling slowly. This effect works well with regular size cells with just a line of text but makes the List scrolling seem a glitchy when the cells are taller. In the App Store app this "snap" effect is not there. When scrolling there is still a visible "Elliptical Scroll Style" but this effect is missing for the "See All" cells which scroll as if it were a "Plain Style List". How would you create this effect? Also when using a Plain Style List and you scroll to the very top or bottom you get a "heavy" haptic feedback which is absent on Elliptical Style Lists. The App Store app still has this "heavy" haptic feedback when you get to the top or bottom yet it uses an Elliptical List style (or at least something in between as explained above.)
Posted
by
Post not yet marked as solved
0 Replies
169 Views
I have a basic List made in SwiftUI. When I scroll with the Digital Crown I get the "light haptics" however when I get to the top or bottom of the list I don't get the more pronounced dent. Update - If I use a plain list style then I get the haptics as expected. However it should work with the elliptical style as this is used in the system. The console outputs the following 2022-05-19 23:32:53.782614+0200 WatchApp WatchKit Extension[326:41020] [default] Error: Error Domain=NSOSStatusErrorDomain Code=-536870187 "(null)" 2022-05-19 23:32:53.783181+0200 WatchApp WatchKit Extension[326:41020] [detents] could not play detent NO, 2, Error Domain=NSOSStatusErrorDomain Code=-536870187 "(null)", (         {         Gain = "0.01799999922513962";         OutputType = 0;         SlotIndex = 4;     },         {         Gain = "0.4900000095367432";         OutputType = 1;         SlotIndex = 5;     } ) Here is my code struct ContentView: View {     var body: some View {             List {                                  ForEach(0..<100) { i in                                         NavigationLink(destination: FeedView()) {                         Text("Hello")                     }                 }                              }.navigationTitle("Title")         } }
Posted
by