0

I want to send PFObject from my Parse.com cloud with PubNub. I send PubNub message with json PFObject and receive it in my IOS app.

JSON.stringify(pfObject)

But i don't know how can I deserialize it in my IOS app as do the PFCloud methods.

There is a solution or not possible ?

Antoine Lenoir
  • 524
  • 1
  • 3
  • 17

1 Answers1

1

Either:

just pass the objectID between the page & the app... the data is gotten from parse


Or:

send the json like you do now and then build the PFObject from that

  1. send the json / receive it on iOS

  2. parse it on IOS using NSJSONSerialization

  3. use the resulting NSDictionary to make a new PFObject

    call + (PFObject *)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary;

Community
  • 1
  • 1
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135