Apple Watch

RSS for tag

Discuss hardware-specific topics related to Apple Watch.

Apple Watch Documentation

Posts under Apple Watch tag

82 Posts
Sort by:
Post not yet marked as solved
1 Replies
325 Views
Hi everyone, We have a sports app that helps track your game scores. Still, when you are in the middle of a game and receive a notification (e.g., an activity notification, a WhatsApp or third-party app), that notification will pop up on the screen, overlapping the app. This forces you to scroll all the way down the notification and close it before you can continue using the app. Some users are complaining about this, and it's indeed very annoying. I was wondering if there's any way to control that during matches, no notifications pop up on your screen (it's ok to have the red dot on top, but having the notification overlapping is what kills the app's usability). Users can avoid this by choosing the right "focus" mode before starting a new match. However, many don't even know this feature exists or how to deal with it. Is there any way to block incoming notifications from appearing on the screen while the app is being executed?
Posted
by Ataliano.
Last updated
.
Post not yet marked as solved
0 Replies
325 Views
Hi all, I am trying to build an app which, on support Apple Watch's (currently just the Ultra's), will detect when the watch has been submerged and will start to report temperature from the sensor. I have followed the developer articles I could find around CMWaterSubmersionManager and have set up a simple class to interact with it. It is now that I want to run my app and test if it is working as I expect it to etc. However I noticed that the waterSubmersionAvailable is only set to true on physical Apple Watch Ultra and Ultra 2. This is rather inconvenient as it means that for the next week or so while developing this feature I will have to stick my arm wearing the watch into a container of water to test the feature. Just wondering if there is any easier way to debug this stuff that anyone has figured out? It would be ideal if this could just be done in the simulator similar to how other device conditions can be induced. I did notice the "Enable Easy Submersion" option in the Debug menu, however I could not figure out a difference between having this on or off, and could not find any explanation of what it actually does on the docs. Does anyone have any experience with this either? Any advice would be appreciated, and to any Apple engineers who may see this, please please please add an option to be able to debug this stuff in the Simulator
Posted
by devharry.
Last updated
.
Post not yet marked as solved
0 Replies
335 Views
Hi, I can find no way of getting HKSeriesType.heartbeat() data from the health store using my own workout app. The values captured seem to be from the irregular HRV measurements done by Apple. There is a video showing HKHeartbeatSeriesSamples being consumed in an app but not how to capture them from the optical sensor. The WWDC video on this https://stackoverflow.com/questions/77950041/getting-heartbeatseriessamples-in-ios-swift-healthkit-hkanchoredobjectquery at around 28 mins assumes you have written the beats from an external device - not from the optical sensor. I have set typesToRead to be: // Beat addition HKSeriesType.heartbeat(), HKQuantityType.quantityType(forIdentifier: .heartRateVariabilitySDNN)!, // end beat addition Why is the watch app not saving beat to beat interval series to the health store?? Failing that how can the watch app access the data itself so that it can then forward to the companion iPhone app? Help much appreciated.
Posted Last updated
.
Post not yet marked as solved
0 Replies
340 Views
I'm trying to execute a background task following the Developer Documentation. This is my code import SwiftUI @main struct MyAppTest_Watch_AppApp: App { @Environment(\.scenePhase) var scenePhase let bs = BackgroundSession() @SceneBuilder var body: some Scene { WindowGroup { ContentView() }.backgroundTask(.appRefresh("prova")) { context in print("bg task") await scheduleTask() } .onChange(of: scenePhase) { phase in switch phase { case .active: print("\(#function) REPORTS - App change of scenePhase to ACTIVE") case .inactive: print("\(#function) REPORTS - App change of scenePhase Inactive") case .background: print("\(#function) REPORTS - App change of scenePhase Background") WKApplication.shared() .scheduleBackgroundRefresh( withPreferredDate: Date.init(timeIntervalSinceNow: 5 * 60.0), userInfo: "prova" as NSSecureCoding & NSObjectProtocol, scheduledCompletion: schedule) default: print("\(#function) REPORTS - App change of scenePhase Default") } } } func scheduleTask() async { bs.testSession() await WKApplication.shared() .scheduleBackgroundRefresh( withPreferredDate: Date.init(timeIntervalSinceNow: 5 * 60.0), userInfo: "prova" as NSSecureCoding & NSObjectProtocol, scheduledCompletion: schedule) } func schedule(error: Error?) { if error != nil { // Handle the scheduling error. fatalError("*** An error occurred while scheduling the background refresh task. ***") } print("Scheduled!") } } On the simulator the background refresh occurs correctly according to the preferred date and executes the background task, on the real watch it does not. I also set the app as complication in my watch face. The device I'm testing the app on is an Apple Watch Serie 7 with watchOS 10.3. Any idea?
Posted Last updated
.
Post marked as solved
1 Replies
644 Views
I know it is not a developer question, but getting the answer may help understand what we can get or not get on Apple Watch after Watch10. Since WatchOS10.2 when swiping face, time is always displayed first as 10:09:31 before setting the correct time one second later. Just in the same way as a long press. But the interest of swipe is to have immediately a different face displaying the correct time. Why is it so ? Is it due to (probably) now using SwiftUI ? Or is it a quick fix, reusing most of code for Lon,g press case ? It did not behave so with WatchOS 9 or before. Is there a setting to change ? It is really inconvenient (and ugly). I filed a bug report: FB13466486
Posted
by Claude31.
Last updated
.
Post not yet marked as solved
0 Replies
354 Views
EKEventStore on Apple Watch is not giving me all calendars. I can see only calendars of the source 'Subscriptions', but non of the calendars of source CalDAV (iCloud). This problem exists over multiple apps. Code works fine on iPhone. Any ideas? Minimal example code: import SwiftUI import EventKit struct ContentView: View { let eventStore = EKEventStore() @State var success: Bool = false @State var calendarNames: [String] = [String]() func request() async { success = (try? await eventStore.requestFullAccessToEvents()) ?? false } func list() { calendarNames = eventStore.calendars(for: .event).map { $0.title } } var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Access: \(success.description)") ScrollView { ForEach(calendarNames, id: \.self) { name in Text(name) } } } .onAppear { Task { await request() list() } } .padding() } }
Posted Last updated
.
Post not yet marked as solved
0 Replies
327 Views
Hello!, I am trying out a new standalone app for Apple Watch, I recently downloaded Xcode latest version (I am using a Macbook Pro M2) and despite making it explicit that I don't want an iOS version, this error keeps appearing, not rendering the preview. I also downloaded the WatchOs simulator. Has anybody experienced something like this? I mean, I followed Apple's tutorial: https://developer.apple.com/documentation/watchos-apps/creating-independent-watchos-apps/ Error: == DATE: Saturday, January 20, 2024 at 1:28:09 a.m. Central Standard Time 2024-01-20T07:28:09Z == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme ”timer Watch App” iOS 17.2 Platform Not Installed. Compile Storyboard file LaunchScreen.storyboard: /* com.apple.ibtool.errors */ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Library/Application Support/MessagesApplicationStub/LaunchScreen.storyboard: error: iOS 17.2 Platform Not Installed.
Posted Last updated
.
Post not yet marked as solved
12 Replies
1.9k Views
I am receiving an error message trying to connect an apple watch to my phone. Error message reads: Could not sign in Operation throttled by server. Retry after 3599 seconds (other operations may be allowed) Has anyone experienced this error message before and know how to resolve it? Apple Watch SE
Posted
by Vdicas22.
Last updated
.
Post not yet marked as solved
0 Replies
391 Views
https://developer.android.com/build/configure-app-module#set_the_application_id In Android, you can separate a mobile app and a wearable app into different projects and still enable communication by setting the same applicationId in both project's build.gradle.kts files. Thus, one may upload mobile app and wearable app into google store separately, and yet be able to receive/send messages with each other. Is there a similar approach available for iOS and watchOS apps? I tried separating the watchOS app into a new project and setting its WKCompanionAppBundleIdentifier to the original iOS app's Bundle Identifier. But I'm still encountering errors as below: WCSession counterpart app not installed SessionIsNotReachable Am I missing something, or is this approach not feasible on iOS/watchOS? Also, if it is not feasible, I would like to know why such approach is available on Android, but not on iOS. If it is feasible, correction for my approach, or introduction of a new approach would be greatly appreciated.
Posted
by inwoodev.
Last updated
.
Post not yet marked as solved
1 Replies
590 Views
I am trying to add a watch target in my existing project using XCode 15.1 but I am not able to see any watch simulators for this to run my watch app. I created a small sample project separately where I can see watch simulators reflecting in the run destination. Can somebody please help me to locate which property or setting I need to check which is disabling XCode to show watch simulators? I have downloaded the watch simulator.
Posted
by binga11.
Last updated
.
Post not yet marked as solved
1 Replies
342 Views
I'm trying to add complications to an existing app via the directions of https://developer.apple.com/documentation/clockkit/deprecated_articles_and_symbols/creating_complications_for_your_watchos_app/enabling_complications_for_your_watchos_app however, Xcode 15 does not have "Complications Configuration" in the Project menu so I can't put in the correct info for "Data Source Class" and "Complications Group". Can someone direct me where to go for up to date information regarding how to do this in Xcode 15?
Posted
by adelman3.
Last updated
.
Post not yet marked as solved
2 Replies
377 Views
let hotspotConfig = NEHotspotConfiguration(ssid: "SSID", passphrase: "PASSWORD", isWEP: false) hotspotConfig.hidden = true let hotspotMgr = NEHotspotConfigurationManager.shared hotspotMgr.apply(hotspotConfig) { error in } This works on the watchos before, but does not work on the latest watchos 10.2, if given incorrect password, the error returns .invalidWPAPassphrase, it's right. However, when given the correct password, the error returns .unknown and no wifi connect request alert shows on the watch. The code works ok on the iPhone, but not works on the watchos.
Posted
by pcjbird.
Last updated
.
Post not yet marked as solved
0 Replies
350 Views
Hi experts, I got an Ultra2 a while ago and has been using it on walking / running exercise. Recently I came across to this apple site: debug profile and I'm curious about what I would get during the exercise. So I follow the instruction and install the location services profile. After getting the sysdiagnose report, I try to get location related information from it. And it seems that the log from "locationd" and "gpsd" are what I'm looking for. But when I try to look into the nmea information, I found out the sysdiagnose only provide around 10-15 mins of nmea data. For example, let's say I have a walking exercise from 0900 - 1000, but I can only see nmea data from 0945 - 1000. The data from 0900 to 0945 can't be found in the sysdiagnose. Not sure if's the limitation or any setting I can change to increase the logging period? Thanks.
Posted Last updated
.
Post not yet marked as solved
0 Replies
406 Views
Hi, sorry if the sentence is wrong as I am using the translate function. I am looking to create an AR application using Nearby Interaction and ARkit. The devices to be used are iPhone 15pro and apple watch 9. The iPhone implementation will measure the distance to the apple watch while simultaneously using AR to track images. The apple watch implementation will only measure the distance to the iPhone. Is it possible to implement this feature? If you know of any, I would like to know.
Posted
by oksP82.
Last updated
.
Post marked as solved
1 Replies
439 Views
Hi, I have been testing an Apple Watch only app on simulator wth no issues. Decided today to try on a device. It builds and deploys then crashes with about with payload. libsystem_kernel.dylib`: 0x472b81d8 <+0>: mov x16, #0x209 0x472b81dc <+4>: svc #0x80 -> 0x472b81e0 <+8>: b.lo 0x472b81fc ; <+36> 0x472b81e4 <+12>: stp x29, x30, [sp, #-0x10]! 0x472b81e8 <+16>: mov x29, sp 0x472b81ec <+20>: bl 0x472ad490 ; cerror_nocancel 0x472b81f0 <+24>: mov sp, x29 0x472b81f4 <+28>: ldp x29, x30, [sp], #0x10 0x472b81f8 <+32>: ret 0x472b81fc <+36>: ret Can anyone shed light on what this might be? I have 5 packages one of which is a 'c' lib. Do not have issues running these on an iOS device however.
Posted
by antokne.
Last updated
.
Post not yet marked as solved
1 Replies
553 Views
I have an NFC door, but I always have to enter a pin, and I have thought, "Can I unlock this using an NFC on my Apple Watch, Apple AirTag, or iPhone, since they all use NFC?" It seems it would save so much time, yet I do not know if there is an app/program that I could use, much less how to program it to trigger. Please reply if you have a response.
Posted Last updated
.
Post not yet marked as solved
0 Replies
254 Views
Hello, i have turned off the Auto-Launch Audio Apps on Ultra Watch but each time i play music on Car Play, the player is mirrored to the watch. can you please advise? thanks
Posted
by Eyeson.
Last updated
.
Post not yet marked as solved
1 Replies
603 Views
Hi, I'm deploying my app to the store for the last several year. I have a Watch app. No matter what I do, I get the next warning above my version information screen for each new build: You’re currently using Apple Watch Series 3 screenshots for your latest watch build. Adding screenshots for the newest devices can help you accurately represent your app’s user experience on the App Store Although I take the screenshots on a real Watch series 9. Does anyone know how I solve it?
Posted
by noam.
Last updated
.
Post not yet marked as solved
10 Replies
1.4k Views
I've encountered a significant sync issue with watchOS 10 RC on every device combination I've tested, running both iOS 17 and watchOS 10. I'm curious if others have noticed a similar problem. Context: Standalone watchOS app developed in SwiftUI with a companion iOS app. Both apps use NSPersistentCloudKitContainer for bi-directional CloudKit CoreData Sync between the iOS app and watch. Previously, this sync mechanism was near instant in the foreground and took max 1-2 minutes in the background NSPersistentCloudKitContainer has been reliable since the app was first developed in the watchOS 6/iOS 13 era. Issue: In watchOS 10 RC, sync can take hours--and doesn't even occur when the app is in the foreground. Sync only reliably happens when the watch is placed on the charger, seemingly only if the charge is over 50%. Once taken off the charger, the watch will continue push and receive CoreData changes briefly before becoming unresponsive to sync again. Additional Info: The problem persists even when recompiled with the latest Xcode RC. It's problem is consistent in both production and development CloudKit environments. The CloudKit log shows no watch activity upon CoreData object updates, until placed on the charger (with over 50% charge). The sync starts in the background while the watch is charging. The iOS app, however, reflects immediate activity in the CloudKit log after a CoreData change from the device and reacts promptly to pushes when they eventually occur from the watch. The NSPersistentCloudKitContainer code hasn't changed since it was implemented. Background modes for remote notifications are set correctly, and when sync finally happens, it's accurate. I'm stumped. Perhaps there's a new watchOS 10 setting affecting CloudKit sync QoS? Or could this be a known watchOS 10 RC bug?
Posted
by Eboles.
Last updated
.