ios - Using Core Data with watchOS 2.0 -


i made ios/apple watch app watchkit 1.0 uses shared group container , custom framework access same core data store. now, in transition guide watchos 2.0, apple says this:

if existing watch app , ios app use shared group container or icloud exchange data, must change way exchange data in watchos 2. because watchkit extension runs on apple watch, extension must exchange data ios app wirelessly. can using nsurlsession object or using watch connectivity framework, supports bidirectional communication between ios app , watchkit extension.

how work core data, though? need maintain 2 separate stores, 1 in documents folder on watch , 1 on phone, , use watch connectivity framework sync changes? see watchos 2.0 can access core data framework (it's in list of available technologies)...but i'm not sure how helps when store located on phone. help/guidance appreciated!

yes, you'll have maintain 2 separate stores. if either side "read-only" client , coredata datastore small , changes infrequently potentially use transferfile watchconnectivity api transfer whole store each time changes.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -