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
16
votes
4 answers

How can I change the label "Cancel" from modal segue in Apple Watch

How to change the label appearing at the top left corner that says "Cancel" when I open a modal view... I would like it to be a button with an image.
Hugo Alonso
  • 6,684
  • 2
  • 34
  • 65
16
votes
2 answers

Watchkit - How to set the element one below other in Group

I am working on the watchkit app and I want to create a table row with an image and two labels where the labels are one below the other, like this: I tried the position options in interface builder, but no luck. The labels are always on the same…
Pratik B
  • 1,599
  • 1
  • 15
  • 32
16
votes
3 answers

iOS7 and Apple Watch

I have a app with the minimum iOS target iOS7. I am considering in add some extra features with the apple watch. Theres is any option to maintain the iOS7 as the minimum target and still add support for apple watch if the app is running on a iOS 8?…
DaSilva
  • 1,358
  • 1
  • 19
  • 42
15
votes
2 answers

SwiftUI: NavigationLink pops immediately if used within ForEach

I'm using a NavigationLink inside of a ForEach in a List to build a basic list of buttons each leading to a separate detail screen. When I tap on any of the list cells, it transitions to the detail view of that cell but then immediately pops back to…
Viktor Malyi
  • 2,298
  • 2
  • 23
  • 40
15
votes
2 answers

Apple Watch pre-build action to change storyboard customModule references

I currently have a project with 3 different versions of the same app (different branding and such), which is working just fine. I've since then added 3 new Apple Watch targets (1 for each app "version"), where which 2 of them reference the files in…
tskulbru
  • 2,336
  • 1
  • 20
  • 38
15
votes
1 answer

WatchOS snap to next row on scroll in WKInterfaceTable

Apple's own Activity app has an interesting feature that I try to re-implement in my own watch app: Each page in the activity app is scrollable and basically has 2 vertical pages. The first page is the circle and the second page shows more…
bluebamboo
  • 1,262
  • 10
  • 11
15
votes
2 answers

apple watch - slow image animation first time

I'm building a small app for apple watch. I have a Group and a Label inside of it. What I'm trying to do is: animate background image of the group fade in label after image animation ends My code looks essentially like this: …
alchemiss
  • 398
  • 4
  • 16
15
votes
2 answers

What is the very reason for WatchKit2 error code 7007 "session on paired device is not reachable"

I am developing a glance view for my Apple WatchOS2 app. I'am currently didn't fully understand the prequisites for a stable WatchConnectivity connection now. I have the strange situation, that in the simulator my ComplicationController could…
ChaosSpeeder
  • 3,468
  • 5
  • 30
  • 38
15
votes
7 answers

WatchOS 2: "Cannot Install Watch App" "Error Launching 'TestApp WatchKit App Extension'"

I am getting a AlertView popup error on iOS every time I try to install a watchOS 2 app in Xcode 7 beta 4: Cannot Install Watch App TestApp is installed on your iPhone, but the TestApp app for Apple Watch is currently unavailable. I've also tried…
Jay Hickey
  • 600
  • 6
  • 17
15
votes
1 answer

Xcode Watchkit: None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups

Yes, I know that there are a lot of these questions floating around and I know that the answer to all of them was: Log into Developer Member Center Go to Identifiers, profiles, etc Click Edit and then Generate on your provisioning profile That…
Nerdy Lime Apps
  • 331
  • 2
  • 5
  • 18
15
votes
3 answers

How to Handle Action Buttons in Push Notifications

Working on Apple Watch Notifications:- so if i add button in Notification Interface (from object Lib) then the error is : Buttons are not Supported in Notification Interface PushNotificationPayload.apns has the WatchKit Simulator Actions Like This…
user3661308
14
votes
1 answer

How to draw polyline over map in apple watchOS

We have tried with apple map but apple map SDK does not allow us to draw polyline over the map so we have seen one application that is doing a similar thing using MapBox SDK. But unfortunately, Mapbox official documentation does not provide any…
Pradeep
  • 563
  • 1
  • 3
  • 16
14
votes
2 answers

Xcode 12 Getting Errors

I am using Xcode for creating a watchOS app with iOS application. When I run my empty application, I am getting the errors below in debug console. I'm not sure why I am getting these errors. WatchApp Extension[1722:69488] [default]…
Nik
  • 1,679
  • 1
  • 20
  • 36
14
votes
1 answer

Calories not being recorded for HealthKit Watch app

I can't get any calories/activeEnergyBurned to show up in my app, and don't know why? WorkoutInterfaceController: private func totalCalories() -> Double { return totalEnergyBurned.doubleValue(for: HKUnit.kilocalorie()) } private func…
SRMR
  • 3,064
  • 6
  • 31
  • 59
14
votes
6 answers

Can I change the Apple Watch simulator language?

Is it possible to change the Apple Watch simulator locale? I want to test the localization of my watch app. I can change language on an iPhone simulator, but the watch simulator is always in English. I can't find any language settings:
kelin
  • 11,323
  • 6
  • 67
  • 104