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
1 answer

Selecting an image from the photo library to be displayed to a image view on the apple watch using xcode and swift

I have been trying to set up a UIImageView that will allow the user to select an image from their apple watch and then display it to the UIImageView. However, I have not been successful at my attempts to solve this. There are only examples of how…
Nighthawk
  • 772
  • 11
  • 21
1
vote
0 answers

How to fix showing notifications of filtered messages on apple watch?

I am creating a Spam-SMS filter application with Xcode's built-in "Message Filter Extention" and it works really well. There are no notifications in my iOS Device from those filtered messages but when it comes to apple watch all the notifications…
Sasan Soroush
  • 857
  • 8
  • 16
1
vote
1 answer

App installation error message whitelist of allowed keys

I finally got my watch application build successfully but I'm getting this error message when I try to debug on the device. The WatchKit app's Info.plist contains a key that is not in the whitelist of allowed keys for a WatchKit app. Here is my…
Ken
  • 773
  • 1
  • 9
  • 17
1
vote
0 answers

Does the Apple Watch ensure data integrity?

I'd like to access heart rate data from the Apple Watch. Can I be sure that the data is authentic and really coming from an Apple Watch? I found that devices can add digital signatures to their data:…
Markus Waas
  • 148
  • 6
1
vote
0 answers

My device is not shown in Apple Watch (Series 4) Bluetooth setting list

I want to connect my Bluetooth (BT) Device to my apple watch but it is not shown in bluetooth setting. In iPhone its shown and connecte as well. In the same iWatch AirPod is connecting properly. So i want to know the reason and solotion of this…
Mohammad Mugish
  • 335
  • 1
  • 3
  • 13
1
vote
0 answers

Retrieving the audio file from the document directory

is it possible to retrieve the recorded audio file from the document directory? I have looked through the whole internet, but using AVAsset/WKAudioFileAsset does not seem to be the right path. Is there just the way to convert the recorded audio…
1
vote
0 answers

Is WKAudioFileAsset an audio file and can it be sent to a server?

I tried to look for a solution but could not find anything. I want to know whether a WKAudioFileAsset is an audio file? Can it be considered as a .wav file? Is it possible to send a WKAudioFileAsset to a php server? Can you post some sample code…
1
vote
1 answer

Start background WatchOS app automatically on startup of Apple Watch 4 after reboot

I want to start my written background app on my Apple Watch 4 automatically after rebooting Apple Watch 4, so that it runs continuously in the background. I tried to reboot the Watch, but my app does not start automatically. It runs in the…
Danilo
  • 41
  • 2
1
vote
1 answer

Is it possible to use C++ code in WatchOS / WatchKit app

So far I am only able to code WatchOS apps in Objective C or Swift. I have a few C++ code libraries I would like to use on WatchOS. Every time I try to include them I get compile time errors such as error: unknown type name ‘class’ int…
1
vote
2 answers

Can I build Apple Watch app without iPhone companion app

I am planning to build an Apple watch app that should interact with an external device via Bluetooth. So, can I build just an apple watch app without iPhone Companion app?​
Kalyan
  • 263
  • 5
  • 22
1
vote
1 answer

Xamarin Forms WatchOS main iOS app couldn’t be found

I am trying to create a watchOS app in an existing Xamarin Forms application in Visual Studio 2017 on Windows. I have followed all the steps listed here. I have also added watchOS app project reference to the main iOS app by selecting add reference…
1
vote
1 answer

Is there a way to record motion when Apple Watch screen is off?

I am using CMMotionManager to record attitude data on a watch app. My problem is that when the watch is rotated too far the screen turns off and it pauses recording. I haven't been able to find a way to either keep the screen waked or to record…
1
vote
1 answer

Updating the count of an object's keys by appending a string

WatchKit has a presenter method that presents a QuickReplyButton with predetermined text replies and those replies can be sent to a UI element such as a label in a cell/row. I have inserted the row into the last position however each subsequent…
Edison
  • 11,881
  • 5
  • 42
  • 50
1
vote
1 answer

handleRemoteNowPlayingActivity is not called

How to initiate call of handleRemoteNowPlayingActivity function. I try to play an audio file with AVAudioPlayer in my iPhone app and I expect that this function will be called on watches. Maybe I should make some additional call to trigger this…
1
vote
1 answer

Include a date converter function inside of a DateFormatter extension

The extension formats the API date then the converter function converts it to the formatting I like. The code works, but the call seems verbose. Is this something that can be refactored? Can I combine the two? It seemed logical to make the…
Edison
  • 11,881
  • 5
  • 42
  • 50