ios - Parse Livequery changes not printing when there's an update -
when started working parse live query knew beginning challenge. seeing there muiple ways create live query. when had set server on, bit of code used listen updates looked this:
let livequeryclientmessage = parselivequery.client() qmessages.wherekey("touser", equalto: (pfuser.current()?.objectid!)! string) messagesubscription = livequeryclientmessage.subscribe(qmessage).handle(event.created){ _, message in //prepare local notification alert print("object updated") }
this however, no longer seems function properly. looked @ parse live query docs see if there working example , found gets server "create new client: " code:
let qmessages = pfquery(classname: "messages") qmessages.wherekey("touser", equalto: (pfuser.current()?.objectid!)! string) let subscription = client.shared.subscribe(qmessages) subscription.handle(event.updated){ query, event in print("object updated") }
but unable print message display... missing something? i'm using latest version of parselivequery believe:
pod 'parselivequery'
update1: tried rebuild server , issue still seems persist. i'll try , make use of parse query , see if filter... update2: rolled version of podfile in case issue grabbing lastest master branch. no fix yet...
the solution fixing issue related defined. refer awnser stackoverflow question: parse cloud - livequeries - ios client doesn't work there's sufficient explanation there too.
Comments
Post a Comment