watchconnectivity

WKWatchConnectivityRefreshBackgroundTask is never triggered in background, but WKSnapshotRefreshBackgroundTask

一笑奈何 提交于 2019-11-30 16:12:54
问题 I want to update my watch app state in background from iPhone, using session.updateApplicationContext(applicationContext). Sending an application contact while the app on the watch is active does work properly. When I activate the home button on the watch, the watch app goes to the background, handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) is called, and a WKSnapshotRefreshBackgroundTask is provided. So I don’t understand why a WKSnapshotRefreshBackgroundTask is triggered properly,

How To Share Data with Watch OS 2 to display in WKInterfaceTable when working with CoreData

巧了我就是萌 提交于 2019-11-29 23:35:00
问题 I am using WatchConnectivity to try to send data of type NSManagedObject called arrayOfOjects to the Watch. Each object has a string property called title . The InterfaceController on the Watch loads and displays and empty table - as intended because the array is empty, then when the user requests the data it is sent using the didReceiveMessage method on the phone. I am unsure how to add the dictionary array to the objectsArray to display in the WKInterfaceTable . Does anyone know how I can

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

隐身守侯 提交于 2019-11-28 06:32:42
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 documentation, and there doesn't seem to be much information on this on the internet at this time (in fact, googling WCErrorCodePayloadTooLarge gives me just 4 results). Has anyone tested to try to find the answer to this? If this question doesn't get an answer, I will try to do it myself and post the results. So far, all the information I have is that it

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

依然范特西╮ 提交于 2019-11-27 05:40:55
问题 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 documentation, and there doesn't seem to be much information on this on the internet at this time (in fact, googling WCErrorCodePayloadTooLarge gives me just 4 results). Has anyone tested to try to find the answer to this? If this question doesn't get an