SRMR
SRMR

Reputation: 3134

Using Parse SDK in watchOS2

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 Extensions 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

Answers (1)

hiro_kimu
hiro_kimu

Reputation: 116

You can't use Parse SDK for iOS on watchOS 2, because its code runs on Apple Watch device.

Documentation:

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

Related Questions