Questions tagged [watchconnectivity]

The WatchConnectivity framework provides a two-way channel for an iOS app to talk to its counterpart WatchKit app and vice-versa. Use this tag when asking for help with Apple's WatchConnectivity Framework.

The WatchConnectivity framework provides a two-way channel for an iOS app to talk to its counterpart WatchKit app and vice-versa. This framework provides classes that allow both components (the iOS app and the WatchKit) to share data with each other.

The WCSession class, the heart of this framework, provides communication methods that can allow simple transfers like messages, to full-blown file transfers.

WatchConnectivity Framework Reference

249 questions
40
votes
2 answers

"Message reply took too long." - Watch Connectivity Issues with Watch OS 3

In my project, I use Watch Connectivity to send messages to and from the Watch and iPhone. I can send a message to the phone and receive an array of strings when launching the app, however when using actions I get the following error; Error…
JUSDEV
  • 731
  • 1
  • 7
  • 22
34
votes
1 answer

iOS WatchOS - what is the difference between WatchKit App and WatchKit App extension?

I'm trying to create an iOS WatchOS5 complication and am seeing a number of tutorials and apple documentation. They talk about: WatchKit App WatchKit App extension What is the difference between iOS WatchKit App and WatchKit App Extension? If I…
19
votes
2 answers

WCErrorCodeDeliveryFailed: Payload could not be delivered

I'm working on an app that share data between iPhone and Apple Watch, using WCSession method sendMessage:replyHandler:errorHandler: After implementing that method I get the error like: WCSession _onqueue_notifyOfMessageError:withErrorHandler:…
Aawara
  • 301
  • 3
  • 18
16
votes
3 answers

Is it safe to use updateApplicationContext to send keychain value

In watchOS 2, there are no more shared keychains. If I want to send a keychain value from the iOS app to the Watch app, is it safe to send it via WCSession updateApplicationContext?
david72
  • 7,151
  • 3
  • 37
  • 59
16
votes
1 answer

How big can the payload be when sending data via WatchConnectivity?

When sending data using the WatchConnectivity framework, either from the phone to the watch or vice-versa, how big can the payload be before the framework gives me the WCErrorCodePayloadTooLarge error? I couldn't find the answer on Apple's…
Andy Ibanez
  • 12,104
  • 9
  • 65
  • 100
12
votes
0 answers

How to stream custom camera from iOS app to a watchOS application?

I've searched the web high & low to find a solution. WatchOS has the ability to use the stock camera app from the iPhone & stream in almost realtime to the stock watchOS camera app. How is this possible as I have a camera app that needs to display…
CokePokes
  • 941
  • 3
  • 12
  • 25
12
votes
3 answers

How to share data using Watch Connectivity when working with Core Data

In my iOS application I use Core Data to store data and a fetch request to create an array of NSManagedObjects to display in a UITableView. On the Watch OS I check if WCSession is supported and active a session, then send the iOS application a…
RileyDev
  • 2,950
  • 3
  • 26
  • 61
11
votes
0 answers

What's the best way to sync authentication data between iOS and watchOS?

I've having issues synchronizing user credentials between iOS and watchOS. My basic set up is that my iOS app and watchOS app both need to talk to a backend server, and they both need an access token to do so. However, the user can only sign in on…
10
votes
1 answer

How can I share information between my iOS and Watch apps using WatchConnectivity?

[Disclaimer: this question is intended to be a wiki question to answer the frequent questions about sending data between the iOS and watch apps under the watchkit and watch-os tags.] I am developing an Apple Watch app and would like to send data…
Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
9
votes
2 answers

Watch Connectivity: didReceiveMessage not called

I am using WatchConnectivity framework to receive a string from my app. Here is how I send the string in Obj-C from the app: -(void) viewDidLoad { //WATCHKIT WCSession* session = [WCSession defaultSession]; session.delegate = self; …
MSU_Bulldog
  • 3,501
  • 5
  • 37
  • 73
8
votes
5 answers

WatchOS app not detecting companion iOS app

I am making an independent Apple Watch app (but with a companion iPhone app which is not necessary for the watch app to function.) The app uses WatchConnectivity to sync data between devices if iPhone companion app is installed. I am able to call…
Cakelly
  • 401
  • 3
  • 9
7
votes
3 answers

Apple Watch complications are not reliably updated

I have an iPhone app that sends data from the iPhone app directly to the watch face to be displayed as a complication. I use the WatchConnectivity framework to create a WCSession to send the data to the watch from the phone. My data is stored in a…
7
votes
0 answers

Watch Networking Broken In Xcode 8 Beta 3

I'm receiving the following error when sending any kind of http request from my WatchKit Extension: WatchKit Extension[6128:479936] [WC] __33-[WCXPCManager onqueue_reconnect]_block_invoke error reconnecting to daemon due to…
Anushk
  • 482
  • 4
  • 20
6
votes
2 answers

WatchConnectivity: WCSession.transferUserInfo succeeds on a watch but the data never reaches an iPhone

Context I am building a watchOS app for iOS app (i.e. it's not an independent watchOS app) with Xcode 12.3. My watchOS app needs to send little chunks of data (structs containing a string and a date) to the iOS as a result of user actions on the…
Vadim Belyaev
  • 2,456
  • 2
  • 18
  • 23
6
votes
1 answer

WCSession not sending messages from iPhone to Watch when watch app is in Background

I'm working on an iOS app that must send updates to the Apple Watch app using a WCSession. It's working flawlesly in the iOS/Watch simulators, but not in real devices. When I try to send a message with sendMessage:replyHandler:errorHandler: method,…
lucaslt89
  • 2,431
  • 1
  • 20
  • 30
1
2 3
16 17