watchOS is the operating system for Apple Watch.

watchOS Documentation

Posts under watchOS tag

342 Posts
Sort by:
Post not yet marked as solved
0 Replies
133 Views
Are there commands for testing watch complications in XCUITest? So far I see that we can press the home button and rotate the Digital Crown in test As of Xcode Version 14.0 beta (14A5228q) the XCUITest record function doesn't work. Can't find anything in debugDescription to helpout either with reaching complications https://developer.apple.com/documentation/xctest/xcuidevice/button
Posted
by romy-is.
Last updated
.
Post not yet marked as solved
2 Replies
223 Views
Hey, I'm just doing SwiftUI tutorial and I'm stuck at https://developer.apple.com/tutorials/swiftui/creating-a-watchos-app (section 4, Add the Landmarks List). Everything worked fine till now, navigation links on the watchOS are not working, just nothing happens. I found on StackOverflow someone with same problem in comments, but there wasn't any reply. (https://stackoverflow.com/questions/70488323/navigationlink-broken-on-watchos#comment124704650_70488323) Someone said It's broken since watchOS 8.1. What to do to start the links working? :D
Posted
by Krall.
Last updated
.
Post not yet marked as solved
1 Replies
314 Views
I have a Settings.bundle for my app Roughly, which tells the approximate time in words (e.g. it's about quarter to six) in a complication. It supports a number of languages, but I allow people to use a different language to their own, to help them learn how to tell the time in another language. The preference switch works fine in the Watch app on the iPhone, but if a user downloads the app direct from the App Store to their watch, there is no way for them to access those preferences. The preferences do not appear in the Watch app without the iOS app present on the iPhone. Does anyone have a good solution to this? Do I have to offer a preferences switch in the app itself?
Posted Last updated
.
Post not yet marked as solved
0 Replies
88 Views
We are building an application that would be cross-platform and hence using CMake as the build system. While am able to build for iOS, macOS, tvOS etc, have not been able to build for watchOS using CMake. Right now, am looking for an independent watchOS app. Can someone help with any pointers or reference link for the same ?
Posted Last updated
.
Post not yet marked as solved
0 Replies
114 Views
Just curious whether anyone had any resources on the security of data sent via the Watch Connectivity APIs (e.g. updateApplicationContext or sendMessage)? Developing an app that will send data to an apple watch from a companion iOS app. The data we will be sending is events (think like syncing a users calendar between their phone app and watch app), so not super-secure that it should be in keychain, but not something we also want to be flying around for anything to listen to. Haven't found any resources on this, or in any of the past WWDC videos, so any advice or guidance would be great. Thanks 😊
Posted
by krimwell.
Last updated
.
Post marked as solved
2 Replies
228 Views
I have a simple complication-only app called Roughly, which shows the approximate time in words, to the nearest five minutes, in a choice of languages. It's been on the store for several years, and it's getting creaky. This new guide to WidgetKit is making me nervous: https://developer.apple.com/documentation/widgetkit/converting-a-clockkit-app There's a line buried in there: watchOS 9 and later no longer shows families like CLKComplicationFamily.circularSmall, CLKComplicationFamily.modularSmall, or CLKComplicationFamily.modularLarge on watch faces. So... is that the end of all basic complications that haven't been made into Widgets? If so, it would be good to have more clarity on this — I do feel it's easy to miss when things are deprecated. Thanks for any info!
Posted Last updated
.
Post not yet marked as solved
0 Replies
101 Views
The sleep data isn’t showing up on my health app, like the sleep last night was recorded, but the data isn’t showing for the sleep stages. Any way to fix? Thanks
Posted
by dannyhel.
Last updated
.
Post not yet marked as solved
0 Replies
143 Views
We want to test auto renewable subscription in the sandbox. On my personal iPhone is my personal production account. On my personal iPhone is a sandbox account. But: When I want to buy subscription in the sandbox on the watch, then the watch shows the error: "Buying the app is not possible. Login with your iPhone with the Apple Watch App with your Apple-ID." When I take a look in the watchApp --> General --> AppleId then I see my production account. QUESTION: How can I use the sandbox Account to test subscription?
Posted
by Leobalo.
Last updated
.
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 Last updated
.
Post not yet marked as solved
0 Replies
119 Views
Hello guys, I am fetching a string from a server, and print it in a text field. It works fine: let remoteContent = fetched.content Text(remoteContent) If I split it, and try to print elements, I get a black screen. I tried casting substring to String and NSString etc. but didn't manage to get it to work. I'm new to Swift and I must say... It's quite overwhelming! Here's the problematic code: let remoteContentArray = remoteContent.split(separator: Character(",")) Text(String(remoteContentArray[0])) I tried it in the playground and it works fine. But in a view no chance. I tried directly using a dummy string like "some,words,separated,by,commas" And it works! But why does it behave like this with the fetched string? PS. Is it just me, or is Swift kinda hostile to learn? Thanks a lot.
Posted
by darg.
Last updated
.
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 Last updated
.
Post not yet marked as solved
1 Replies
714 Views
Hi, As the title says... Is there any API or code to keep the screen on the Apple Watch to truly remain ALWAYS on? with no dimming whatsoever... even when the watch screen is passed its wake duration... is it possible to keep the app in an always active state?
Posted Last updated
.
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 Neufsters.
Last updated
.
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 Johnno.
Last updated
.
Post not yet marked as solved
1 Replies
265 Views
I found a following doc. About Add a watchOS App Target to an Existing iOS Project. But I couldn't find I want info. Would you please let me know how to add an iOS Target to Existing watchOS Project? I created project by watchApp. https://developer.apple.com/documentation/watchkit/setting_up_a_watchos_project
Posted
by KoSone.
Last updated
.
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 Last updated
.
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 VaDJaN.
Last updated
.
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 Neufsters.
Last updated
.
Post not yet marked as solved
1 Replies
283 Views
I am having problems on Xcode13.3.1, Monterey 12.2.1, Apple M1 Max. Sending an UpdateApplicationContext update from a paired iPhone simulator is not received on the paired Apple Watch Simulator in the didRecieveApplicationContext. However, sendMessage from the apple watch simulator does update the iphone simulator app properly. It is however, not possible to send anything from the paired iPhone simulator to the paired Apple Watch Simulator. When working with actual devices everything works properly with WatchConnectivity with passing information back and forth via updateapplicationcontext and sendmessage calls. Can anyone confirm this is a bug or if there is something wrong with my setup?
Posted Last updated
.
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 wlixcc.
Last updated
.