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

Reload watchOS complications after timeline ends

I do not understand how I can reliable reload the complication timeline on watchOS after the current timeline ends. In getTimelineEndDate:forComplication:withHandler (CLKComplicationDataSource) I'm returning the end of the current day. My…
ersjoh
  • 321
  • 3
  • 13
1
vote
0 answers

Can watchOS be connected to BLE device alone?

I made a bluetooth thermometer for Arduino. I want to display the temperature by connecting it to my Apple Watch 5. Can I make an app on my own with the Apple Watch? it is search my device. but can't connect. TransferService.swift import…
1
vote
1 answer

WatchApp architecture missing - Xcode 12

Since updating Xcode to version 12, I get this error when uploading my app to the App Store. ERROR ITMS-90733: "Missing architecture. Apps built with Watch OS 5.0 and later SDKs must contain additional architectures." When testing on my devices all…
Zifigo
  • 196
  • 8
1
vote
1 answer

TintColor does not apply to my Complication when using rendering Mode "Template" (CLKComplicationTemplateGraphicCircularClosedGaugeImage)

I am currently trying to implement a CLKComplicationTemplateGraphicCircularClosedGaugeImage but for some reason my icon keeps getting tinted blue. When I change the tintColor of the WatchFace everything seems to be tinted the right way. But when I…
Sebastian Boldt
  • 5,283
  • 9
  • 52
  • 64
1
vote
1 answer

Why are Image objects not showing up from a SwiftUI tutorial?

I've been trying to change the layout to the WatchLandmarks tutorial that Apple provides for making SwiftUI apps for the watch (https://developer.apple.com/tutorials/swiftui/creating-a-watchos-app) and I can't figure out why the images aren't…
Jargen89
  • 480
  • 1
  • 6
  • 19
1
vote
1 answer

iOS Watch ComplicationController not showing result

I have followed the Apple Developer guide on setting up my ComplicationController. I have set modularLarge enabled, and made sure its also enabled in info.plist. I have set my data source in Complication Settings to…
user13891746
1
vote
1 answer

"Type '[view]' cannot conform to 'View'" error when using NavigationLink()

I have a simple Apple Watch app that I'm building with SwiftUI. I'm trying to add a button to go from my ContentView to my SettingsView using NavigationLink struct ContentView: View { @EnvironmentObject var settings: SettingsObject …
Quoc Tran
  • 45
  • 5
1
vote
1 answer

how to use Timer in sleep mode in watchkit

I am first in watchkit and I am going to make alarm app. After start app, app should play sound every some seconds(user can set this time interval). I am using Timer to count time interval, and if count time is 0 then play sound and resent timer…
Water Flower
  • 377
  • 7
  • 23
1
vote
0 answers

WatchOS App crash after changing display name

I was building my application and I decided to change the display name. After the change, this error occurred. 2020-06-16 16:16:39.647223-0700 Test App[4270:147334] [default] -[SPRemoteInterface…
Cero
  • 66
  • 3
1
vote
2 answers

Check if Apple Watch is not currently connected

I am trying to detect if a user's Apple watch is currently active using this code: if WCSession.isSupported() { let session = WCSession.default session.delegate = self session.activate() } But even after I power off the watch, I get a…
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
1
vote
1 answer

HKWorkoutSessionDelegate : workoutSession(_:didGenerate:) problem with pause detection

I am building a running workout for Apple Watch and I have a problem to implement an "auto-pause" feature. The HKWorkoutSessionDelegate : workoutSession(_:didGenerate:) delegate is supposed to get some pause events generated by the system. The…
1
vote
0 answers

How to get network connection status in apple watch standalone application?

Using NWPathMonitor, I get network information in watch simulator (with usesInterfaceType) and it showing right status, but in real device it's not working. It alway showing no network. I developed independent watch application. Please check below…
1
vote
1 answer

Local Notifications not working on independent WatchOS App

I cannot figure out, how I can schedule local notification in independent WatchOS APP In my extension delegate I try to setup it let center = UNUserNotificationCenter.current() func applicationDidFinishLaunching() { center.delegate…
1
vote
0 answers

What would cause WatchOS background audio to play ONLY while connected in debug session with XCode and fail otherwise

I'm using XCode 11.4, WatchOS 6.2, Swift/UI to build a watch app that plays background audio via speaker or BlueTooth pending user choice. Here are the scenarios: Pass: From XCode run on target watch (series 5) Start audio Screen On: Audio plays…
Erik Peterson
  • 105
  • 1
  • 1
  • 6
1
vote
1 answer

Watchkit: How do you call for a vibrate without sound?

In WatchKit, I call: WKInterfaceDevice.current().play(.start) ... and the watch vibrates - but also has a sound. What do I call to vibrate the watch without a sound? Thanks.
Geo
  • 21
  • 3