1,304 questions
0
votes
1
answer
54
views
iOS App Group Data Not Accessible from Watch App in Companion App Setup
I have an iOS app with a WatchKit target (companion app). Both the iOS app and Watch app have the App Group capability enabled. I am trying to share data between the iOS app and Watch app using a ...
Best practices
0
votes
0
replies
23
views
Apple WatchOS: Adopt watchface background for complication
On the California watchface (white) there are two complication slots. The upper one is seemingly not a standard slot and limited to a few Apple-owned apps (Calender, Time, …). It adopts the (default ...
Advice
0
votes
0
replies
36
views
With an Apple account can I use Xcode to create a custom Apple Watch Face for myself?
FIRST I understand this cannot be shared period!
That including App Store, Enterprise Accounts, or TestFlight.
I am not asking if it should be done. I am asking if there is anyknown information that ...
0
votes
0
answers
33
views
Can watchConnectivity work when WatchOS app and ios App are in separate Xcode WorkSpace
Ios App and WatchOS app are developed by different organization, so they are in different workSpace, but we need to use WatchConnectivity to transfer data from iphone to watch.
In this case, can ...
1
vote
0
answers
47
views
HealthKit workout not contributing to Exercise ring (Move works fine, desk treadmill scenario)
I’m building a watchOS app for desk treadmills (walking while typing), where the user’s arms stay fixed (no arm swing).
What works:
I create an HKWorkout for indoor walking, start a HKWorkoutSession +...
1
vote
0
answers
41
views
MKReverseGeocodingRequest fails with NSURLErrorDomain Code=-1009 (WatchOS 26)
We try to replace the depreated reverseGeocodeLocation call by MKReverseGeocodingRequest for WatchOS 26. However, the call always returns error -1009 indicating that there is no connection to the ...
1
vote
2
answers
88
views
How to maintain navigation title scroll behavior when using Text with custom color in watchOS?
I'm encountering an issue with navigation title behavior in watchOS SwiftUI. When using a String for the navigation title, long titles automatically scroll as expected. However, when switching to Text ...
0
votes
1
answer
103
views
Hide sensitive data on watchOS with WidgetKit
I am looking for a way to hide sensitive information on my Complication, basically whenever the user does not actively look at it. That includes
Always-On state
Locked State (e.g. Watch not on wrist)
...
0
votes
1
answer
26
views
With HealthKit, is calling end() required when done with workout?
For a watchOS app, do you have to call end() on a HKWorkoutSession even if your app doesn't care about the transition to the ended state? Apple's Running workout sessions article includes it in the ...
2
votes
1
answer
124
views
Xcode uses older SDK version for watchOS target Rust native XCFramework library
Background
I'm compiling a native library written in Rust for watchOS target using cargo swift package. I'm using Xcode 16.4 that shipped with watchOS SDK watchOS 11.5. The watchOS app's minimum ...
0
votes
0
answers
36
views
Text as WidgetKit Control Label on watchOS
I want to show a watchOS control that has a Text as its Label.
I tried achieving this with this code (the provider and action are just placeholders):
StaticControlConfiguration(kind: "codecontrol&...
1
vote
0
answers
70
views
Sync not working for independent watchOS app using CloudKit and SwiftData
I'm working on an independent watchOS app and I was looking for the best solution to persist data locally and have an online sync with the iCloud storage.
I've found out about the SwiftData which is ...
1
vote
0
answers
76
views
How to determine if an inline complication is positioned at the top or bottom slot of the Motion watch face for apple watch complications development?
I'm recently developing watch complications using WidgetKit. How can I determine my inline complications is in top or bottom slot context of Motion watch face for different designing, since the top ...
2
votes
0
answers
60
views
How do I use the resolvers API from the App Intents Framework, like struct DoubleFromStringResolver?
I am working on App Intents, Shortcuts, and Siri on iOS. It seems that Siri delivers Strings, what I would need is a Double.
I found that there is a Resolvers API within the App Intents Framework.
...
0
votes
1
answer
100
views
transferUserInfo works from phone to watch but not from watch to phone
I am working on an iOS app with a watchOS companion app.
I have implemented WatchConnectivity and all is working fine. The code for watch and phone is the same. I can send direct messages with ...
0
votes
1
answer
40
views
How to implement collapsible sections on watchOS 10+ since DisclosureGroup is not available?
I’m trying to implement a collapsible section in a List on watchOS (watchOS 10+). The goal is to have a disclosure chevron that toggles a section open/closed with animation, similar to DisclosureGroup ...
0
votes
1
answer
46
views
Fastlane Screenshots: Remove "iPhone disconnected" icon on watchOS
I'm using Fastlane to make promo screens on watchOS simulator. The problem is that Fastlane starts watchOS simulator alone, without the paired iPhone. So the screenshots have "iPhone disconnected&...
0
votes
1
answer
260
views
Xcode 16.4 doesn't show watchOS Run Destinations
After I updated to Xcode Version 16.4 I'm not able to run my WatchOS-App anymore. No Run Destination are shown.
Even if I add a Simulator manually it doesn't appear.
Has anyone a solution for this ...
0
votes
0
answers
19
views
WatchConnectivity not working on my iphone or watch
I set up my project as 2 different targets (watch and phone) in the same project, same group identifier, imported the framework, named them as per apple requirements. My session is activated on both ...
-1
votes
1
answer
56
views
Does WKHapticType.notification always play a sound when a notification is fired?
I'm trying to build a simple WatchOS app that uses WKHapticType.notification for haptic feedback. However, whenever I use it, there is always some (unwanted) sound associated with each notification. ...
0
votes
0
answers
37
views
iOS companion app from watchOs app using Watch Connectivity
I have an iOS dependent watchOS app. I want to trigger iOS app's launch from watchOS app.
Can I use Watch Connectivity framework to achieve this or any other way?
0
votes
0
answers
29
views
Is it permissible to use HKWorkoutSession in an Apple Watch app designed for work safety?
We are developing a mobile application dedicated to work safety and do not include any fitness tracking or workout-related features. Our use of HKWorkoutSession is strictly for enabling background ...
0
votes
0
answers
36
views
DynamicOptionsProvider - does it work on watchOS?
I'm curious, why DynamicOptionsProvider is available on watchOS? Is there any way to present options to the user? For example in Emoji Rangers project that supports both watchOS and iOS:
struct ...
0
votes
0
answers
50
views
Share a file in watchos programmatically?
I want to share a file from my app memory to external places but:
1- The airdrop option is not available in the sharing menu
2- Saving to watch memory is not in options, either
3- Mail and messaging ...
3
votes
0
answers
130
views
iOS UI shows up for custom watchOS Live Activity
I have followed this video on implementing a custom view for the watchOS 11 Smart Stack Live Activities. However, the UI of my iOS app keeps showing up on the watchOS.
struct widgetLiveActivity: ...
-1
votes
1
answer
119
views
Validating app has NSHealthShareUsageDescription errors
I'm trying to validate and Apple Watch app to put it into TestFlight.
However, I'm facing a conundrum with an error in the process relating to the NSHealthShareUsageDescription.
I get the following ...
0
votes
0
answers
32
views
Voice recording WatchOS application gets closed after several hours
I have developed a WatchOS app that records the voice while user is sleeping. I have noticed that this app is getting closed after several hours. How can I prevent this?
PS. The app can be running on ...
2
votes
0
answers
49
views
Cycle found in runner while running my app in Xcode [duplicate]
I am getting this error while running my flutter app in Xcode after adding the WatchOS app.
Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner' has copy ...
1
vote
1
answer
100
views
CornerAccessory Widgets / Complications look different on different watch faces - how can I recognize that in code?
I am building a cornerAccessory Widget / complication for a WatchOS app.
It turns out that different watch faces seems to enforce different design-rules, and what looks good on one watch face does not ...
0
votes
1
answer
132
views
Adding segments/splits into workout Swift
I am building a workout app that has an option to add segments to differentiate the stages of the training session. However, the segments are not visible in Fitness app.
Segments are added the ...
1
vote
1
answer
22
views
CMMovementDisorderManager results not showing
I'm a beginner with swift. I'm working on a Parkinson's disease app for a research project, and have the entitlement and plist.info sorted and working.
I can't seem to get the results function to ...
0
votes
0
answers
47
views
WCSession not reachable for some users
I’m developing an app where the iOS app (written in Flutter) communicates with a watchOS companion app. While the main app is built with Flutter, the communication between iOS and watchOS is ...
0
votes
0
answers
56
views
watchOS timer app freezes UI in dimmed state while haptics continue working
I'm working on a watchOS timer app that needs to run for 3 1/2 minutes while showing countdown numbers. I think that I've discovered that there's nothing to do with the watch dimming- that's a system ...
0
votes
0
answers
46
views
Is there a way to keep the Apple Watch screen on?
There are a number of posts on stackoverflow from about 10 years ago asking if it's possible to keep the Apple Watch screen on programmatically and the answer at that time was no.
I'm building an app ...
0
votes
1
answer
444
views
Syncing Issue Between iOS and WatchOS: SwiftData Not Updating on Watch
I decided to start practicing how to communicate data between iOS/iPad and WatchOS. It seems like it’s not syncing correctly because when I add or remove a person, my watch doesn’t update. I have two ...
0
votes
0
answers
36
views
Location usage description on WatchOS exclusive app
My app is being rejected arguing it needs to add the location permission usage description when asked. It is a watchOS only app and there's no iPhone counterpart.
I have two info.plist files. One in ...
2
votes
1
answer
291
views
watchOS app local notification delayed if companion app is installed or unlocked
I have a watchOS and iOS app that are set to run independently from one another, I can install each separately and there is no reliance on each other with anything like WKSession.
The issue I'm having ...
1
vote
0
answers
84
views
WidgetKit watch complication not updating on timeline dates
I'm having an issue getting my widget to schedule updates with the timeline. My watch is in Developer mode so the normal budget should not apply along with the app being attached to the debugger. I ...
0
votes
1
answer
68
views
Toggle() flashes on change
I'm pretty sure this is a pretty simple problem and it's root is in the ForEach(group.films) section having to redraw whenever $config is changed. The issue is that when I change the Toggle value, ...
0
votes
0
answers
193
views
Picker tags ignoring set ID and using index instead
I have the following Picker:
Picker("Film", selection: $fields.filmId) {
ForEach(config.films.filter { $0.active }, id: \.id) { film in
Text(film.stock).tag(film.id)
}
}
ID ...
2
votes
0
answers
283
views
How to disable Live Activity on Apple Watch while keeping it enabled on iPhone?
I'm using Live Activity features in my app, but I want to customize the user experience across different Apple devices. Specifically, I'd like to:
Keep Live Activity enabled and functioning on the ...
1
vote
0
answers
50
views
Local notification not showing when app is open [duplicate]
I'm trying to have my notification show when my app is in the foreground or background. They are showing when the app is in the background but when I open the app and try to have one show, it doesn't.
...
0
votes
1
answer
94
views
Deleting watchOS app causes CoreLocation permission to reset in iOS companion app
I have an iOS app where in onboarding I ask for the user's location before proceeding to the app:
let manager: CLLocationManager = CLLocationManager()
manager.requestWhenInUseAuthorization()
And I ...
0
votes
1
answer
66
views
WatchOS 11 location authorisation dialog
For my stand-alone(!) watchOS app, I can't seem to get the location authorisation dialog to appear. The code is dead simple:
struct ContentView: View {
var body: some View {
VStack {
...
1
vote
3
answers
351
views
Concurrency issues with HKLiveWorkoutBuilder managed by @Observable class
I am working on a "HealthController" who's responsibility is to expose helpers for HealthKit and in the future track various health kit data points like heartrate, calories etc...
My setup ...
3
votes
0
answers
79
views
How to add buttons to widgets in smart stack on watchOS 10+
is it possible to add functional buttons to the widgets in the smart stack of the Apple watchOS 10+?
It's similar to the widget that come with the Stopwatch app in watchOS:
Note that when we click the ...
0
votes
1
answer
300
views
Is it possible to continuously monitor the users' heart rate on Apple Watch?
I am using SwiftUI to develop a WatchOS application for activity pacing; the main feature in question is monitoring the users' heart rate and sending a notification when it exceeds a threshold they ...
1
vote
1
answer
86
views
Is it possible to start an extendedRuntimeSession in background
I have a Companion Watch App for my iPhone App and communicate via the messages and applicationContext between the watch and the phone. If I start an Event at my iPhone and my watch is turned on the ...
0
votes
0
answers
57
views
watchOS: userNotificationCenter(_:didReceive:withCompletionHandler:) not getting called
I'm developing a watchOS app where I need to handle notifications. I've implemented the UNUserNotificationCenterDelegate methods, but it seems that userNotificationCenter(_:didReceive:...
0
votes
1
answer
201
views
Updating watchOS complication when data in iOS app changes
I'm facing problems when attempting to update my watchOS complication when relevant data on the iPhone app changes.
The issue I am facing is that the watchOS complication only gets refreshed when I ...