Questions tagged [watchkit]

WatchKit is an integral part of the Apple Watch experience for third-party applications. It contains the classes for creating Apple Watch applications and it ensures that an Apple Watch application can talk to its corresponding WatchKit extension.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 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. ...
eternalstorms's user avatar
1 vote
0 answers
10 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, ...
edencorbin's user avatar
  • 2,589
0 votes
0 answers
91 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 ...
Akram Syed's user avatar
1 vote
1 answer
36 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 { ...
Vasyl Nadtochii's user avatar
0 votes
0 answers
16 views

Detect status icon on Apple Watch

I would like to know if the Airplane mode of Apple watch is active, as I know it's impossible to know due limited API. Is possible to detect status icon of Apple watch so I can know if Airplane mode ...
Avi Rok's user avatar
  • 550
0 votes
0 answers
8 views

Is there a better way to get WatchKit up to date heart rate data

I am writing a watch app that allows for tracking of tennis match scoring and creates a kind of mixed tennis/biometric audit trail of what happened when. Nothing spectacular, just a bit of a fun ...
joseph ruth's user avatar
0 votes
0 answers
38 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 ...
Deven Nahata's user avatar
1 vote
0 answers
46 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 ...
Yuki N's user avatar
  • 357
0 votes
0 answers
30 views

Apple Watch IMU Data stops logging on wrist down

We’re developing a watchOS app to log IMU and audio data concurrently. IMU data is logged using a CMMotionManager object, while audio is recorded using an AVAudioSession. Both of these are stored on-...
willfw's user avatar
  • 1
0 votes
0 answers
25 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 ...
Mateus Coelho's user avatar
0 votes
1 answer
17 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. ...
David's user avatar
  • 79
1 vote
0 answers
62 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 ...
dmaulikr's user avatar
  • 468
2 votes
0 answers
122 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 ...
moxmlb's user avatar
  • 1,200
0 votes
0 answers
26 views

Losing return button after changing navigation type to horizontal

I'm changing view with: interfaceController.pushController(withName: "CarInfoController", context: context) in my VisitHistoryCellController. When I go to CarInfoController, there is a ...
Marcel Kopera's user avatar
0 votes
2 answers
196 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): ...
Mahdi Moqadasi's user avatar
0 votes
1 answer
432 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 ...
iosdev1111's user avatar
  • 1,048
1 vote
1 answer
166 views

Removing textfield rounded background in SwiftUI watchKit

Is there any possible way to remove rounded gray background in watchkit's Textfield (SwiftUI) ? I tried to add .textFieldStyle(.plain) but still the background is visible.
Mc.Lover's user avatar
  • 4,813
2 votes
1 answer
475 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 ...
LarryG's user avatar
  • 21
0 votes
1 answer
289 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
ChickenRei's user avatar
5 votes
1 answer
493 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 ...
bencallis's user avatar
  • 3,498
1 vote
0 answers
68 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 ...
justTil's user avatar
  • 95
-1 votes
1 answer
161 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 ...
Simon's user avatar
  • 304
0 votes
0 answers
45 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 ...
Suleman Tariq's user avatar
3 votes
0 answers
297 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 ...
swtype's user avatar
  • 41
0 votes
0 answers
35 views

Can you overcome WatchOS 75MB app size limitation using WatchConnectivity?

I'm looking to build an Apple Watch app which would utilize SceneKit and render a 3D model with many different animations. I imagine the resources would easily take up over the 75MB bundle limit. I ...
ninjz's user avatar
  • 11
1 vote
0 answers
44 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 ...
Jon Gan's user avatar
  • 29
0 votes
1 answer
263 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 ...
Sayan Chakraborty's user avatar
1 vote
0 answers
78 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 ...
Belugas On Mars's user avatar
0 votes
0 answers
72 views

This app could not be installed at this time Apple Watch

I have just develop an apple watch with companion mode. When I try to distribute this app for testers using app distribution and getting error like this: Anyone know how to solve this problem? ...
Rilwanul Huda's user avatar
0 votes
0 answers
38 views

Apple Watch Extension - where is the best location for comm and also storing shared data?

Normally in the past I have used an iOS application's AppDelegate to keep common data that I can later reference from various view controllers. It worked pretty well. I have an Apple Watch Extension ...
Eric Dolecki's user avatar
2 votes
0 answers
82 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, ...
Avoopihra's user avatar
0 votes
0 answers
47 views

Running a Task triggered by Apple Watch

I have an App, that collects some data using URLSession Requests. These requests can't run in parallel, because I need the response of one request to trigger the next one. This whole process could ...
Urkman's user avatar
  • 1,298
0 votes
0 answers
32 views

Stop RepeatForever animation via button press works only when using .default animation

This is a Apple Watch Project. Am trying to animate a Heart shape such that it shows up as Pulsing (via scaleEffect when workout is started / receiving HR. Below is a Minimally Reproducible Example of ...
app4g's user avatar
  • 670
2 votes
1 answer
461 views

Vertical TabView or pagination on Apple Watch using Digital Crown to scroll

I'm trying to recreate the vertical scroll used by something like the Apple Workout app on the Apple watch. See screenshot below: It uses both a regular TabView and something that looks similar to a ...
braza's user avatar
  • 4,280
0 votes
0 answers
13 views

All Complications with the same name

I made some complications for the Apple Watch. I uses Intents for this complications. This code is used to add the complications: func provideVehicleItemOptionsCollection(for intent: ...
Urkman's user avatar
  • 1,298
1 vote
1 answer
353 views

Problem using FCM in an independent watchOS app

I have added Firebase Cloud Messaging to my independent watchOS app. I am able to get a FCM token. When I send a push notification from Postman to the watch the response is success: 1, but I am not ...
Sayan Chakraborty's user avatar
3 votes
2 answers
267 views

Using asset images in Apple Watch Complications

I'm currently build a new Apple Watch App, that should support Complications. But I can't use an asset image in a Complication. When I use a system image Image(systemName: "lock") everything ...
Urkman's user avatar
  • 1,298
0 votes
1 answer
56 views

gutters on sides of List in WatchOS

I'm dipping my toe into SwiftUI and WatchOS for the first time. I'm making good progress, but I can't figure out how to get rid of the black "gutters" on either side of my Image controls. ...
Jason's user avatar
  • 86.4k
0 votes
0 answers
101 views

HealthKit on watchOS app doesn't deploy to device

I am trying to add HealthKit to my watchOS app (with companion app). By default when you add a watchOS the bundle identifier is .watchkitapp Once I add HealthKit to the Signing & Capabilities tab ...
Nilsymbol's user avatar
  • 515
0 votes
0 answers
42 views

Convert string to uiimage watchkit

Please tell me, I broke my whole head, how can I convert the hash (just string)that I receive from the server into a qr code on a watch using a watch kit. I have related apps: watch app and phone app. ...
Avoopihra's user avatar
1 vote
1 answer
125 views

WKInterfaceSKScene.Init() deprecated from WatchOS 6

I recently converted my Storyboard SpriteKit WatchOS app from Storyboards to SwiftUI, in one part of my code I use the WKInterfaceSKScene.texture method to render some SKNodes to a texture for use ...
Aaron Murgatroyd's user avatar
1 vote
0 answers
92 views

SwiftUI - Watch App reachability & scenePhase showing opposite of what it should

I have a watch kit app and an ios app, and when the watch is open/active and i launch the ios app, everything works great. However, when the watch app goes into the background, I get output from the ...
Benjamin B.'s user avatar
1 vote
0 answers
97 views

How to reverse digital crown's scrolling direction for SwiftUI ScrollView?

I'm building a messenger app with a list being rotated 180 degrees to get that typical messenger look so it scrolls from the bottom. How can I reverse the scrolling direction of the ScrollView so that ...
Alexander  Kraynov's user avatar
1 vote
0 answers
139 views

Programmatically help user create a shortcut for watchKit app?

a newbie question. I want to make it easy for users to create a shortcut to use Siri with a watchKit app. The app runs as a companion to an iOS version. Where I've gotten so far: Users can ...
user709029's user avatar
0 votes
0 answers
70 views

Unable to read real time data from HealthKit when App is in foreground

We are to trying to fetch data from Health kit on Specific Interval of time. One first attempt we are able to fetch data from HealthKit and It shows last collected samples. After first attempt, We ...
Rahul Hinsu's user avatar
2 votes
0 answers
161 views

Title and sashColor not appearing on customized long-look notification with WKUserNotificationHostingController

I am building custom long-look notifications in an Apple Watch app, but for some reason the title defined in the notification's UNMutableNotificationContent is not showing on the long-look ...
gohnjanotis's user avatar
  • 6,543
0 votes
3 answers
263 views

WatchKit complication not updating

I want to do something that seems simple - I have an app on the iPhone that allows you to change a date. On the watch, I have a complication that shows among other things the days until that date. So ...
Darren Oakey's user avatar
  • 2,960
0 votes
0 answers
46 views

How to use WKExtendedRuntimeSession and WCSession together

I need watchOS program to run in background and communicated with iOS. Can I use WKExtendedRuntimeSession and WCSession together? Or is there another way to solve the problem? I didn't find a solution....
Krymskyi Maksym's user avatar
2 votes
1 answer
1k views

Missing WatchKit Extension in Xcode 14

I would like to integrate a watchOS extension into my iOS project. I set up the AppleWatch integration via File -> New -> Target -> watchOS -> App. Then can see WatchKitApp via a separate ...
Jorge Reich's user avatar
1 vote
1 answer
223 views

How to run watch app in the background using WKExtendedRuntimeSession

Thank you for taking a look at this page. I am developing a Watch App and would like to do some background data processing in SwiftUI. I tried to run it using WKExtendedRuntimeSession, but it doesn't ...
Kevin's user avatar
  • 13

1
2 3 4 5
65