Open mkpazon opened 7 years ago
One ugly work around I came up with is to disconnect and reconnect:
mParseLiveQueryClient.registerListener(new ParseLiveQueryClientCallbacks() {
@Override
public void onLiveQueryClientConnected(ParseLiveQueryClient client) {
Timber.d("[liveQuery] -> .onLiveQueryClientConnected");
if (counter == 0) {
client.disconnect();
counter++;
startWebsocketConnection();
}
}
...
});
Which version of liveQuery are you using? Of course, it's not normal that you need 2 subscriptions to make it work. It should be working the first time.
I am using 1.0.3
In my activity's
onResume()
I am subscribing to live queryIn my logs I see the following:
No events are being caught.
When I switch to another application and go back then my
onResume()
is triggered again re-registering to live query. I get the following logs: (Notice that this now has the "subscribed" part)This now is able to receive all the events.
Howcome the first registration doesn't work while the 2nd one works?