LiveQuery is never subscribing #201
Replies: 2 comments
-
The .findAll is loading everything fine as well so I don't think it is the query |
Beta Was this translation helpful? Give feedback.
-
Did you compare your code to the playground examples? Also, you can test the playgrounds (and your code) with a known working server config (https://github.com/netreconlab/Parse-Swift?tab=readme-ov-file#test-drive-parse-swift). After you confirm that works, you can change the settings in the playground files and see if they work with your server. If the playgrounds work, you are doing something incorrectly in your code. Working examples are below: You can also look at this thread along with others: https://community.parseplatform.org/t/livequery-stops-and-does-not-restart-in-the-background/2410 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @cbaker6 I switched over to this version of Parse-Swift and everything has been great except LiveQuery
So to prevent me from having to deal with an async view init I am doing this
@StateObject private var subscription: Subscription<Patient> = .init(query: Query<Patient>())
Then on launch of the view I am doing this
But under no circumstances is this every changing from "Not subscribed to query"
What am I doing wrong? The server is setup correctly to have it enabled and the Patient object is listed in the array for livequery.
Information:
Server: Parse Server 6.2.0
SDK: 5.12.3
Xcode: 26
Building for: macOS 26, iOS 26, iPadOS 26, VisionOS 26
Beta Was this translation helpful? Give feedback.
All reactions