3,231 questions
0
votes
1
answer
53
views
How to check WatchConnectivity between Flutter iOS app and Watch app in debug mode?
I’m working on a Flutter iOS app with a paired Apple Watch app (WatchKit in Swift).
In Debug mode (when running the both(watch & mobile) app from xcode):
Watch → iPhone messages arrive ...
0
votes
0
answers
30
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 ...
1
vote
0
answers
96
views
How WCSession's isPaired = false but isWatchAppInstalled = true?
Watch app's Info.plist
// ...
<key>WKRunsIndependentlyOfCompanionApp</key>
<false/>
// ...
My code:
session.delegate = self
session.activate()
public func session(_ session: ...
0
votes
0
answers
58
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
47
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
0
answers
37
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
295
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 ...
0
votes
0
answers
78
views
Image not showing on complication
I'm trying to use the following as my complication code:
struct ComplicationsEntryView : View {
var entry: Provider.Entry
var body: some View {
Image("ComplicationImage")
...
2
votes
0
answers
292
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
0
answers
82
views
Why am I not getting any returned values from my HKStatisticsQuery?
I am creating an IOS application meant to fetch certain health points, accumulative and average, over a certain period of time. The time is received via a timer start and a timer end, and once the ...
1
vote
1
answer
91
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 ...
1
vote
1
answer
960
views
Missing WCSessionDelegate didFinish callback transferring file from WatchOS to iOS(iPhone) using transferFile(_:metadata:) -> WCSessionFileTransfer
I am using WCSession.transferFile(_:metadata:) -> WCSessionFileTransfer for transferring some files from WatchOS (10.5) to iPhone iOS 17.5.1
Watch Connectivity WCSession.transferFile(_:metadata:)
...
0
votes
1
answer
133
views
Apple Watch Getting 561015905 while trying to initiate recording when the app is in background
I'm trying to start and stop recording when my app is in background periodically. I implemented it using Timer and DispatchQueue. However whenever I am trying to initiate the recording I get this ...
0
votes
0
answers
111
views
watchOS live audio stream from watch itself
I would like to stream live audio (hls) from watch itself, our app can start stream on paired device, but when phone is not near by i want to start streaming on watchos (just like spotify or Apple ...
0
votes
1
answer
72
views
How can I create an animation like WhatsApp archive button spawn animation with SwiftUI on watchOS?
List {
//I Want This Button To Appear When User Over Scroll To Top
Button(action: { ... }, label: {
Text("Archive")
})
ForEach(0..<5) { item in
...
2
votes
1
answer
106
views
WatchOS companion app Builds successfully but gives WCSessionDelegate error when Archiving
In the WatchOS companion app I have this model:
import Foundation
import WatchConnectivity
class WatchViewModel: NSObject, ObservableObject {
var session: WCSession
@Published var counter = 0
...
1
vote
1
answer
392
views
How to migrate WidgetKit extensions from dual-target to single-target watchOS app?
Is there a way to migrate WidgetKit extensions made using dual-target watchOS apps to single-target apps? When you create a widget extension with a dual-target app, the bundle identifier includes the ...
2
votes
2
answers
721
views
how to programatically trigger notification on the watch from my iOS app
So this feels like it should be a common question here on StackOverflow and Apple's dev forums, but all the question/answers I have found date from long before 2024. The TLDR version of this question ...
4
votes
3
answers
1k
views
Flutter iOS Companion App With Watch App Error : No such module 'WatchKit' While Archiving
I've an Flutter iOS app which is assosciated with watch app target.
Basic functionality is that the current watch app is tracking live heart rate of the user through watch app
Issue:
While Debugging I'...
0
votes
2
answers
154
views
How to get WCSession to continue streaming data after WatchKit app falls asleep?
We are working on a WatchKit app that streams heart rate data to a companion iOS app. This works very well with WCSession, however, when the WatchKit app sleeps, the data does not continue to stream. ...
1
vote
0
answers
360
views
Apple Watch Series 3 (WatchOS 8.8) cannot connect/pair to Xcode v15.0.1
For some unknown reason, my apple watch is unable to sync with Xcode and I am unable to build to my Watch. In the Devices and Simulators window, it always shows my Apple Watch as "Connecting"...
0
votes
0
answers
29
views
In WatchKit can't access UserDefaults [duplicate]
I add as a new target WatchKit and I need use in watch UserDefaults and I added both targets into single AppGroup but I can't get values from UserDefaults from WatchKit when I debug UserDefaults(...
2
votes
1
answer
926
views
How do I access the watchOS 10 double tap and other accessibility gestures
I would like to trigger parts of my app with the watchOS 10 double tap or other accessibility gestures that were introduced in older watchOS versions.
I tried to use the normal SwiftUI gesture ...
-1
votes
1
answer
335
views
XCode 15 - Getting WatchKit Extension Error while Project try to run in real device
Facing a error when switch project Xcode 14 to Xcode 15 in M1 Mac.
In simulator it is working fine but when try to real device getting error.
[Getting error on M1 Mac while try to run in real device]
(...
0
votes
1
answer
811
views
XCode 15 getting error of No such module 'YOChartImageKit' even framework is there in Project
Using pod of YOChartImageKit still getting error of No such module.
(https://i.sstatic.net/fuqw0.png)
Below Steps are followed multiple times but not getting result.
I tried remove pod and install ...
7
votes
0
answers
171
views
WKInterfaceController title alignment change on watchOS 10
I use setTitle() to display a custom text on the top left corner (aligned to the clock) of a controller. But after upgrading to watchOS 10, the title is displayed on the right, under the clock, ...
0
votes
1
answer
172
views
Has WKExtendedRuntimeSession changed the way timers work?
I have a stand-alone watchOS app that starts a WKExtendedRuntimeSession and a 1-second repeating timer when a button is pressed. No CPU-intensive stuff happens during this extended (background) time.
...
1
vote
1
answer
516
views
SwiftUI WCSession isReachable only when looking at watch
I'm building a watch and iphone ios companion app and having issues reliably triggering messages between the two applications. In both applications I trigger the WC onInit in a viewmodel that loads, ...
2
votes
0
answers
729
views
Simulator device returned an error for the requested operation
**i am using watchOS 9.4
i rest simulator but nothing works,
secondly the simulator does not boot with out running app while other simulator boot up that is running on watchOS 8.5
Simulator device ...
1
vote
1
answer
247
views
WatchConnectivity - Start AVPlayer on iOS device from watch companion app
Let's say I have SwiftUI app that starts playing audio from chosen url in list:
struct ContentView: View {
@ObservedObject var viewModel: ContentViewModel
var body: some View {
...
0
votes
0
answers
109
views
Watch Simulator Not Loading
Currently trying to create an app that sends data/a message from an Apple Watch to a linked iPhone using WCSession. Code compiles with no errors, but only opens the iOS simulator and says that the ...
2
votes
0
answers
248
views
How to get the data stored in Apple Watch file system?
I'm making an independent app on apple watch platform to record some user data which is going to be saved in the apple watch file system. But I don't know how to pull these data out to my PC. Is there ...
0
votes
0
answers
84
views
How to send a message from my Swift UIKIT app to my Watch App in swiftUI
I just created a watch app target for my already existing app.
I want to set a timer to start on this watch app. It just need to me a timer, decreasing from 60 to 0.
A also have a timer im my ap, and ...
0
votes
1
answer
49
views
Deleting assets from watchOS app through code?
I'm working with a watchOS app and I'm creating a set-up screen with some videos to help introduce the user to the app. They will be added to the project directory alongside the app's .swift files.
...
1
vote
0
answers
191
views
Push Notifications on Apple Watch Not Working
I am trying to set FCM notification to my watch os project. This project is a stand-alone watch app that doesn’t have any iPhone interface.
I have integrated Firebase yet it’s not showing any ...
3
votes
0
answers
411
views
SwiftUI watchOS play sound on speaker loud and continue music
I want to create a watchOS App which play's a sound if I press a button. this sound should be played on the speaker with maximum volume. After the sound ends, the music should continue and the volume ...
1
vote
2
answers
477
views
Tap action for new complications of watchOS 9
In earlier watchOS versions (ver>9) we can use complication descriptor to add complications and metadata like userActivity for handle tap action in the watch app delegate (according to AppleDocs):
...
0
votes
1
answer
1k
views
Register and handle push notification for watch os application swiftUI
I have one swiftUI iPhone application. I have added watch application target for iPhone application. I have registered for push notification in iPhone application using following code.
class ...
3
votes
1
answer
1k
views
How do I update a watch complication when a value in a watch app is updated?
I created a custom/learner iOS app and watch app using Xcode 14 for iOS 16.2 and WatchOS 9.1. The apps have one real-world user. The apps use CoreData to store activities locally. The apps use ...
1
vote
1
answer
452
views
I need help: Missing WatchKit Extension in Xcode 14
I want to use WatchConnectivity but I can't use it without WatchKit Extension
I haven't found a solution so far
5
votes
2
answers
1k
views
SwiftUI - How to create a performant frame by frame animated Image View?
Context
I am in the process of converting an Apple Watch app from WatchKit to SwiftUI.
This app makes use of animated WKInterfaceImage which loop through a sequences of images in a performant way.
The ...
2
votes
0
answers
210
views
How do I add a custom Image to an HKWorkout in Swift?
I am working on a workout App where users can save their workouts to HealthKit.
However, when I save the workout, it does not have an image in the Apple Fitness App overview. So my question is, how ...
-1
votes
1
answer
420
views
Hide & Disable TabBar when in NavigationDestination Subview - Apple Watch
I'm trying to create a UI layout and navigation functionality similar to the Apple Fitness app on Apple Watch.
This is all WatchOS 9 so no need for older API support, phew!
I want to have ...
0
votes
0
answers
236
views
WCSession activated successfully but session.isReachabilty always return false
******** Session Activated ******
Watch is paired true
Watch is reachable false
Watch app installed false
I have established the session but not able to make connection reachability between the iOS ...
4
votes
0
answers
604
views
Swift StoreKit Testing: Expired subscription shows as "Currently subscribed"
Trying expired subscription detection on watchOS my app claims a valid subscription when it shouldn't.
print(status.localizedDescription) gives me Currently subscribed which is odd because the ...
1
vote
0
answers
67
views
Cannot find 'CLKComplicationTemplateExtraLargeCircularView' in scope
Hi so I'm building an iOS SwiftUI WatchKit App and I'm getting this error trying to build out
a complication
/*
Abstract:
ComplicationController for Complication UI
*/
import Foundation
import ...
0
votes
1
answer
428
views
How to handle firebase cloud message notification in foreground in standalone Watch OS app?
I am trying to listen to firebase cloud message notifications on standalone Apple Watch app. In Flutter framework there is
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
//handle ...
1
vote
0
answers
264
views
WatchKit App Cannot Connect to the Internet. Works on Simulator but not on Physical Device
This is my first WatchKit App.
I am working on an app that gets an API call to an iCal file and displays the time remaining in two events.
I am working on Xcode 13.4.1 and created an iOS app with ...
2
votes
0
answers
226
views
Problem with in-app purchases in apple watch Swift
I have been trying in vain for several days to make a test purchase of a subscription from the watch, but nothing works out for me, all the methods that I found have been tried, and these are: apphud, ...