Reputation: 3134
I can't find how to use Parse
SDK in watchOS2
, does anyone know?
I used it in watchOS
and it worked great, but now I can't do Parse
queries in my WatchKit Extension
s InterfaceController
without getting errors:
// Query Parse
PFQuery *query = [PFQuery queryWithClassName:@"data"];
Is this just not possible anymore?
If not, has anyone had success using it in the iPhone
app and then some workaround to use the Parse
data in my watchOS2
app?
How would you keep the iPhone app and Apple Watch app in parity though in case the iPhone app is not launched?
Upvotes: 3
Views: 533
Reputation: 116
You can't use Parse SDK for iOS on watchOS 2, because its code runs on Apple Watch device.
In watchOS 2, the extension runs on the user’s Apple Watch instead of on the user’s iPhone, as was the case in watchOS 1.
Simply implement your code in iOS app and communicate between iOS and watchOS2 via WCSession class. I did so.
Upvotes: 1