Questions tagged [wcsession]

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.

120 questions
4
votes
1 answer

(Watch Connectivity) WCSession is missing its delegate (only in XCode11.0)

As a title, I found this error only in XCode11.0. I send some data from app (written with react-native) to appleWatch. I'm using now watch-connectivity and the method of 'updateApplicationContext' for communicating iPhone with it. But appleWatch…
ShogoSaito
  • 51
  • 3
4
votes
1 answer

WCSession File Transfer Issue

I am having an issue sending files to the Apple Watch from the parent device. Sometimes the file goes through and is parsed completely. Other times it begins the file transfer, but it fails and never even rens the method session:(WCSession *)session…
S. Stark
  • 189
  • 1
  • 1
  • 11
3
votes
0 answers

loadAppContextDataFromInbox error loading in application context from inbox NSFileReadNoPermissionError -> EACCES

I have been developing an app the works with the apple watch's workouts and an iPhone. The app is written in swift and communication has been working properly for weeks while I add features. I am suddenly getting the following error code when I…
Delph2
  • 119
  • 1
  • 9
3
votes
1 answer

Is it possible to transfer audio files from iPhone to Apple Watch using transferFile in swift?

I want to transfer both audio files and a zip file (as large as 30MB) from iPhone to Apple Watch. I’ve used transferFile method (https://developer.apple.com/documentation/watchconnectivity/wcsession/1615667-transferfile) to send them but the…
3
votes
0 answers

How to launch watchOS and iOS apps in the simulators at the same time?

I am working on an app for watchOS that is supposed to extend my iOS app's features. I run my app on the iOS simulator. Then, I select the scheme for the Watch app and the simulator next to it says "iPhone 7 + Apple Watch Series 2 - 38mm". However,…
user2875404
  • 3,048
  • 3
  • 25
  • 47
3
votes
1 answer

Send dictionary data to apple watch from ios applicaton

In my app, I have this page named "TicketDetailViewController" in which i have 3 labels and an imageView in which data is displayed from previous page. Now what i want is when i click on my "sendtowatch" button, i want to send the displayed data i.e…
Nishant Narola
  • 255
  • 3
  • 18
3
votes
1 answer

WatchConnectivity transferUserInfo not working when watch app terminated

As I read the doc, transferUserInfo is a queued process of 1, and the latest data will surely reach the watch sandbox. This is the code on the iOS app: -(void)sendViaTransferUserInfo { NSDictionary *weatherData = [[NSDictionary alloc]…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
3
votes
1 answer

WCSession only working once

In my app, I have to send information from the watch InterfaceController to the phone HomeViewController. But, when I run my code, the information only works once. For it to work again, I have to delete the Apple Watch app and reinstall…
av993
  • 47
  • 4
3
votes
1 answer

How can watchOS 2.2 app determine if its paired iPhone has switched to another Apple Watch?

I'm trying to support the new feature for pairing with multiple watches in my iOS 9.3/watchOS 2.2 app. It seems to be working well, except that I can't figure out how the watchOS app can determine if the paired iPhone has been switched to another…
Jon Colverson
  • 2,986
  • 1
  • 24
  • 24
3
votes
0 answers

Is there a way to simulate WatchConnectivity reachability loss?

I am trying to test my app's functionality for when the watch loses or regains connection with the phone (sessionReachabilityDidChange) and for when I try to send a message and have no connectivity (trying to simulate a sendMessage error.) Is there…
Dan
  • 2,599
  • 1
  • 17
  • 13
3
votes
0 answers

Synchronize Core Data file to Apple watch for Swift 2.0

I have SQLite file which created by Core Data and want to transfer file from iPhone to Apple Watch. I choose WCSession to do that. I can receive the file on the Apple Watch, but I did not find any data which I saved in the iPhone file. Is there any…
Mirant
  • 308
  • 2
  • 13
3
votes
0 answers

Watch Connectivity sendMessageData max size of data

I use WCSession sendMessageData to transfer images across from my iPhone to my watch. Everything works fine if the images are smaller. When they get bigger the messaging fails with Message reply failed. I assume there is a maximum size for data…
Philipp Otto
  • 4,061
  • 2
  • 32
  • 49
2
votes
0 answers

WCSession counterpart app not installed or installed throughout settings in the watch app

I have developed my watch app for my iOS App. The problem is that I need to use WCSession logic in order to send data from iOS to the AppWatch and vice versa. If I install from Xcode, I get "WCSession counterpart app not installed" error message, so…
oskarko
  • 3,382
  • 1
  • 26
  • 26
2
votes
0 answers

Get connected apple watch details in swift

in my xcode when i am opening "simulator and devices", there i can see my iphone and connected apple watch name. i want to get the apple watch name so that i can show the device to user in my app. how to get the connected apple watch details and the…
Tapan Raut
  • 850
  • 6
  • 17
2
votes
1 answer

Checking "Supports Running without iOS App Installation" on Watch App disables WCSession from operating

I checked "Supports Running without iOS App Installation" on a build I submitted to the app store (so that I could get a location permission alert on the watch), however I am noticing that because of this my WCSession calls to the iPhone when…
GarySabo
  • 5,806
  • 5
  • 49
  • 124