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.

WatchKit allows iOS developers to create rich, third-party app extensions with actionable items and notifications for the Apple Watch, as they've built apps for the iPhone and iPad.

More information on WatchKit:

3223 questions
1
vote
0 answers

Why does WKPanGestureRecognizer end each gesture after 6-7 seconds?

I'm testing WKPanGestureRecognizer on my Apple Watch Series 7. It seems the pan gestures are always ended after about 6-7 seconds. When I lift my finger before that timespan ends, everything behaves as I would expect it: the gesture event fires once…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
1
vote
0 answers

WatchKit: The 45mm watch icon is blank

I have added all required icons sizes for the watch app, but the icon for the 45mm watch shows up as blank. The icon shows up properly if I reboot the watch but as soon as I run Xcode and install a new build on the watch, the default icon shows up…
RawMean
  • 8,374
  • 6
  • 55
  • 82
1
vote
1 answer

watchOS 8 HealtKit background delivery stops working after a few hours in background

I'm trying to implement background delivery of the HealthKit data for an independent watchOS 8 app. I was following Gettings the most out of HealthKit WWDC talk and seems to have added everything that is needed for background delivery to work,…
Sanya
  • 159
  • 8
1
vote
1 answer

Upgraded to Xcode 13 RC, and latest RevenueCat package, and now Purchases won't work with watchOS

I have an independent watch app on the store as part of a family of apps. The watch app is part of a single project with the iOS app. After I upgraded Xcode, my app will no longer recognize the Purchases(now RevenueCat) package. I am using a single…
Yrb
  • 8,103
  • 2
  • 14
  • 44
1
vote
1 answer

SwiftUI image in modal sheets for Apple Watch

I would like to create a modal sheets with an image in the body, like in Human Interface Guidelines. Could you please give me an example? https://developer.apple.com/design/human-interface-guidelines/watchos/interaction/modality/
mamutido
  • 191
  • 1
  • 1
  • 8
1
vote
1 answer

XCode 12.5 unable to deploy to phone with watch paired - Device "(null)" isn't registered in your developer account

I have an App groups project that deploys an iPhone app with Apple Watch extension. The project was working in prior versions of XCode. I have re-launched the project after a few months and find that I'm unable to run it on device. Clicking register…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
0 answers

What order dose a complications happen hand how do I change the data?

I've asked a question before about how I refresh a complications and got some help there but I still don't know in what order everything happens and how to update the complications data. My complications is still showing the first loaded data even…
1
vote
1 answer

How to create a scrollable list for Watch OS that has a fixed size?

I'm a beginner to Watch OS programming (I'm using Storyboard) and would like some help with scrollable lists. I need to create a scrollable list of numbers (e.g. from 1 to 20) that changes when user uses scrolls with the crown. I know how to create…
charliekelly
  • 456
  • 1
  • 7
  • 22
1
vote
1 answer

ExtensionDelegate.swift not called

I would like to start by saying I know there is a question like this but I haven't found anything on those I've read that fixes my problem. My end goal is to have a Watch complication like a countdown clock. I have an iOS app that reads information…
1
vote
0 answers

SwiftUI: forcing focus based on state with TabView and watchOS

I'm trying to have a feature where a button enables the digital crown. There are multiple tabs with this button, and I want to be able to scroll between the tabs and keep the mode/crown enabled. So for above, my goal is the user could touch…
t9mike
  • 1,546
  • 2
  • 19
  • 31
1
vote
1 answer

SwiftUI: enable watch digital crown via focus change

I want to provide a button that will enable the Apple Watch digital crown for input. That involves ensuring something has focus that will get the crown changes. I've got a little tester for this: When you touch the "Enable Crown" button, I want to…
t9mike
  • 1,546
  • 2
  • 19
  • 31
1
vote
0 answers

Web API for getting Apple Watch data [Health Data]

Is there an open API to get the data from Apple watch and display it on Web App? I just need some basic data from the Apple Watch to be displayed on the web portal. Can we only access Apple Watch data by creating an IOS app?
Janmajay
  • 49
  • 1
  • 9
1
vote
0 answers

watchOS SwiftUI app not founding applicationWillTerminate() function

I am trying to add a function applicationWillTerminate() in my independent watchOS app. With searching from the internet, I found that you can find application life cycle function delegates with using WKExtensionDelegate. But I am unable to find any…
1
vote
0 answers

Xcode 12 fails to add watchOS 4.2 simulator

I want to build an app with WatchKit extension with watchOS 4.2 deployment target (for Apple Watch Gen0 support) in Xcode 12.4. I have iOS 14.4 and watchOS 4.2 simulators downloaded. But when i try to add paired watch to any iOS simulator and select…
vwf
  • 21
  • 2
1
vote
0 answers

WKInterfaceInlineMovie Starts Playing Even if setAutoplays(_:) is Set to false

I have an WKInterfaceInlineMovie within an WKInterfaceController. The URL of the video is set at some point after the video file is downloaded. Playing works fine besides this problem which is a different story, I think. Here's the problem. If I…
lazarevzubov
  • 1,767
  • 2
  • 14
  • 24