parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 865 forks source link

Live Query Not Working Properly #1765

Open onlinedeveloper4u opened 8 months ago

onlinedeveloper4u commented 8 months ago

New Issue Checklist

Issue Description

Live query Added. Subscription for all parse classes needed to listen for live data updates added. Live query sometimes works and sometime did not.

Steps to reproduce

  1. Add live query to some classes
  2. Test
  3. It will some time work and sometime did not

Actual Outcome

Live query not listening for live query events frequently

Expected Outcome

Expected to listen for all events for all classes

Environment

Client

Server

Database

parse-github-assistant[bot] commented 8 months ago

Thanks for opening this issue!

mtrezza commented 8 months ago

This is difficult to analyze further based on the information provided. It may well just be a connection issue in your environment. Not sure if we have integration tests in the SDK, but if we do it would be good if you could demonstrate the issue in a test?

dplewis commented 8 months ago

@mtrezza The Live Query Starter Project should be improved with integration tests and a simple chat bot. Live Query documentation is missing from the repo as well.

suathh commented 7 months ago

I can make an addition to that problem. I changed my parse server version from 4.5.0 to 5.2.3 and our live socket connection in iOS become unstable. It effects other requests in SDK too.

Live Query connection lost/reconnection phase is blocking casual SDK requests.

junya100 commented 6 months ago

We met the same problem with iOS-OSX SDK(version 2.7.3) and parse server version 5.4.2.

And we can see following log message. ParseLiveQuery: WebSocket viability changed to viable It seems the socket connection has established, but any update/create event is not received.

And Android SDK(4.2.1) works properly.