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
2 answers

watchOS Complication – reload more than daily budget?

I am developing a watchOS Complication with type graphicRectangular. Something like the apple activity or heart rate complication. These updates often and display some graph data. My graph works – showing calendar events in timeline. I cannot…
1
vote
0 answers

How can I debug background fetch capability in iOS?

I have an application with background fetch capability. It was one of the first features implemented, and it was working like a charm - calling performFetchWithCompletionHandler every specified time interval (10 minutes). Later in development, I…
Dmytro
  • 19
  • 3
1
vote
1 answer

Modify WatchKit Table View to prevent pushing interface out of view

I am developing a stopwatch app for Apple Watch similar to the one that is preinstalled on the Apple Watch by default. I want to have a lap table similar to the preinstalled one that can scroll but doesn't push the control buttons outside of the…
Jake Derouin
  • 365
  • 2
  • 9
1
vote
1 answer

Content inside Picker overlaps when the font size increases in SwiftUI

struct ContentView: View { @State private var selectedNumber = 0 // var numbersArray - This will be the array var body: some View { VStack { Picker("Number Picker", selection: $selectedNumber) { …
subin272
  • 733
  • 6
  • 24
1
vote
1 answer

Update current time every minute (Swift)

Currently, my code only updates when first launching (in this case, booting Apple Watch). I want the current time to automatically update every minute, so it could be read as h:mm a. if complication.family == .utilitarianLarge { let…
Swordee
  • 11
  • 1
1
vote
1 answer

Can't sign in with Apple on the independent watchOS app

I try to implement authentication with Sign In with Apple on watchOS app without iPhone. import AuthenticationServices class InterfaceController: WKInterfaceController { @IBOutlet weak var signInBtn: WKInterfaceAuthorizationAppleIDButton! …
moonvader
  • 19,761
  • 18
  • 67
  • 116
1
vote
1 answer

Can I use AWS Amplify with an independent WatchOS app?

I'm building an independent WatchOS app and am trying to use AWS Amplify as the backend. However, whenever I try to install it in my Podfiles I get this error from my terminal: [!] The platform of the target `xyz WatchKit App` (watchOS 6.1) is not…
Kasey
  • 374
  • 2
  • 12
1
vote
0 answers

Is there a reliable method to extend a complication timeline on AppleWatch if application is not running

I'm trying to extend my complication timeline from background, but at the latest after 1 or 2 extension of the timeline it doesn't work anymore and the content of the complication is not updated anymore (I have a complication with a new value every…
1
vote
0 answers

LocationManager coordinates not available onAppear on Watch app

I am programming a watch app based on some functionality of my iPhone app. On the phone, everything is working as intended, but on the watch app, I am getting location data too late. However, I can't figure out what is the correct way of doing…
wildfang
  • 315
  • 4
  • 9
1
vote
2 answers

SwiftUI, Timer: Timer not firing

I am using WatchKit and SwiftUI to build an Apple Watch application. At the start of my struct, I am initialising a publishing Timer: struct ContentView: View { @State var index: Int = 0 let timer = Timer.publish(every: 0.2, on: .main, in:…
Florian S
  • 552
  • 3
  • 15
1
vote
0 answers

Different paths for companion app and extension app in same App Group

I have enabled app groups in my iOS app and watchkit app. My provisioning profile is also managed by XCode. The both apps iOS app and WatchKit App runs fine. When I try to access the path of shared container from iOS app and watchkit extension…
Lokireddy
  • 11
  • 3
1
vote
1 answer

watchkit: sleep -- can the isIdleTimer be changed/disabled?

I'm looking for an equivalent to the following iOS option: UIApplication.shared.isIdleTimerDisabled = true That is, I'd like my Watch application to stay alive longer than the quick "sleep"/idle time that gets triggered when you don't move your…
Geo
  • 21
  • 3
1
vote
1 answer

"Execution of the command buffer was aborted due to an error during execution" on Apple Watch App?

2020-01-18 18:03:02.316685-0500 Watch Extension[529:813076] Execution of the command buffer was aborted due to an error during execution. Insufficient Permission (to submit GPU work from background) (IOAF code 6) I started getting this console…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
1
vote
1 answer

Programmatically add a border to WKInterfaceGroup - Solved

Is it possible to give a WatchKit table cell or WKInterfaceGroup a border width of 2px and a red border color? If not, are there any work-arounds?
DataZombies
  • 416
  • 6
  • 19
1
vote
1 answer

Redirect back functionality in watchOs app

I want to use login with Auth0 in my watchOs app. I have successfully implemented the "Sign in with apple" and after that used Auth0 for same. Now I also want to implement the other way of auth0 login like sign in with Facebook, twitter etc. and as…
Shipra Gupta
  • 171
  • 1
  • 2
  • 10