Error when updating application context

Has anyone else seen the following error (when using WCSession between phone and watch):

Error when updating application context Error Domain=WCErrorDomain Code=7010 
"The operation couldn’t be completed. (WCErrorDomain error 7010.)".


I'm attempting to modify the code from potloc, which does not throw this error (when being used on the phone. Hard to tell on the watch as errors on the phone side don't show up). However, when I perform what I think is the same thing on my app, it gives me this error. The upshot is that I am not being streamed location data. It appears I get one shot (I get an updating location reply from the phone) and then it goes dead. I assume this error is the cause, but I don't really understand what it is, or how to resolve it.


If anyone understands this I'd appreciate some pointers. Thanks!

Accepted Answer

The error 7010 means "WCErrorCodePayloadUnsupportedTypes". What exactly are you trying to use as application context?

From the docs: "A dictionary of property list values." Are you sure the object is an NSDictionary containig only property list values?


If you're trying to use something which is not a property list value you have to archive it into an NSData object.


Dirk

Error when updating application context
 
 
Q