The WCSession class facilitates communication between a WatchKit extension and its companion iOS app. Please only use this tag for questions directly directed at the WCSession class and the WCSessionDelegate protocol. For other questions consider the 'watchconnectivity' or 'watchkit' tags.
Questions tagged [wcsession]
120 questions
1
vote
1 answer
Combining WatchConnectivity and Complications
I want my complication to get data from the iPhone via Watch Connectivity. I am using sendMessage Instant Messaging technology.
I don't want my iPhone app to be open when I try to get data, so this needs to work in the background.
In my…

ph1psG
- 568
- 5
- 24
1
vote
1 answer
Creating Architecture for Sharing Photos with Apple Watch OS2
I'm trying to figure out the proper approach for sharing 10+ photos from an iOS app to an Apple Watch app using watchOS 2.
I want to transfer these images in the background so that the user doesn't have to open the iOS app in order to view the…

Andy
- 750
- 7
- 23
1
vote
1 answer
How to use WCSession didReceiveMessage to receive different messages?
I need to send different messages from different buttons. How do I use didReceiveMessage to receive them all?

Seven
- 11
- 1
1
vote
1 answer
Inconsistent behaviour with WatchKit app - Swift
I'm trying to make iOS app to communicate with watch, but i get inconsistent behaviour all the time - either the communication is too slow, or none of the data gets transferred at all.
Besides, i don't see any "Phone disabled" screen when the…

David Robertson
- 1,561
- 4
- 19
- 41
1
vote
0 answers
wrong WCSessionDelegate callback function called
I use the WCSession.defaultSession().sendMessage function to send a message from the watch to the iphone, with non nil replyHandler closure
on the iphone,
func session(session: WCSession, didReceiveMessage message: [String : AnyObject])
is…

dowi
- 1,005
- 15
- 30
1
vote
2 answers
didFinishUserInfoTransfer finished successfully - but still with outstandingUserInfoTransfers Objects
First I use the "transferUserInfo"-method in order to send a dictionary from the iPhone to the Apple Watch:
let dicty = //...my dictionary of property-list values...
if WCSession.isSupported() {
let session = WCSession.defaultSession()
if…

iKK
- 6,394
- 10
- 58
- 131
1
vote
0 answers
WCSession error domain code 7005: Device is not Paired
By making use of WCSession sendMessage, I am getting ErrorDomainCode 7005 constantly within one of my Projects.
I get this error when testing with all simulators and also on real iPhone and paired Apple Watch. Devices are definitely paired.
The…

user1836882
- 11
- 1
1
vote
0 answers
Wcsession session expired and error 7007
I am new in WatchKit and I am working on one of my app, but I am facing one problem regarding connection with Apple watch.
my source code is below:
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary…

Krish Solanki
- 269
- 4
- 11
0
votes
0 answers
Watch Simulator Not Loading
Currently trying to create an app that sends data/a message from an Apple Watch to a linked iPhone using WCSession. Code compiles with no errors, but only opens the iOS simulator and says that the WCSession isn't paired. I am therefore not able to…
0
votes
0 answers
Sharing data between iOS and watchOS application (and widget) - WatchConnectivity
I am trying to send data from iOS application to watchOS app and widget (using WatchConnectivity). Former receives data just fine, but I wasn't able to figure out why data does not make it to the widget on watchOS.
Here's some code:
My iOS app that…

Mr. 0xCa7
- 100
- 7
0
votes
1 answer
iPhone app isn't waking in the background when WCSession's sendMessage is fired
I'm making an app for Apple Watch that needs to wake the iPhone's counterpart app which loads a site via a WKWebView, takes a snapshot, and sends the image back.
It works perfectly when the iPhone app is on-screen, intermittently when it's running…

David
- 87
- 12
0
votes
0 answers
Convert string to uiimage watchkit
Please tell me, I broke my whole head, how can I convert the hash (just string)that I receive from the server into a qr code on a watch using a watch kit.
I have related apps: watch app and phone app. I can do it very easily on my phone - just…

Avoopihra
- 45
- 4
0
votes
1 answer
CF7 forms breaks when adding WC()->session->set()
I have a form from which I want to save data and use it during woocommerce checkout.
If some conditions are met, the forms redirects to the checkout page.
I want to use the form data but when I add WC()->session->set('cf7_posted_data',…

Romain Bezy
- 1
- 3
0
votes
2 answers
IOS & WatchOS background communication
I have a IOS application with a companion WatchOS application. I am wondering if there is a way I can communicate with the IOS application in real time while it not running as a foreground application.
The best example I can think of is how your are…

Matt Braniff
- 45
- 6
0
votes
0 answers
(WatchConnectivity) WCSession missing delegate
I am trying to implement messaging between Watch and iPhone where the watch is the one sending data to phone. It has to happen in background therefore I'm using applicationContxt. However, I keep getting these errors whenever I try to run the…