Platform
Enable Live Query
6min
activating your live query introduction the query is one of the key concepts for parse technology it allows you to retrieve objects by specifying some conditions, making it easy to build apps such as social networks, dashboards, mobile commerce, and also amazing games however, parse query is based on a pull model, which is not suitable for apps that need real time support suppose you are building an app that needs real time messages like a chat app parse query would not be an ideal solution since a user app doesn’t know when another one updated a conversation with a new message in this case, the database has a new update to inform the other to query from the server to get the updates livequery solves this problem this tool allows you to subscribe to a parse query you are interested in once subscribed, the server will notify clients whenever a parse object that matches the parse query is created or updated, in real time at this guide, we’re going to show you how to activate livequeries to your app prerequisites to complete this tutorial, you will need a verified account at back4app an app created in back4app check this create new app tutorial to learn how to create an app at back4app how can i use this feature? when you enable the live query feature is a guarantee that you can use more functionalities in back4app side, so, it has the many different purposes that are described below you will also learn the process of setting up a subdomain later, in the following instructions 1 locate the feature block to locate and enable your live query feature, log in to your back4app account go to the my apps option, and then click on server settings server settings after that, search for the server url and live query server url and live query block and select settings the server url and live query server url and live query section looks like this 2 use live query in your app to enable client livequery server interaction, it’s necessary to activate the live query in the web hosting box and select the class that will allow communication between the client and server the section related to this is shown below 3 change the default serverurl you can change the default url https //parseapi back4app com/ https //parseapi back4app com/ to your subdomain b4a io/ https //www back4app com/docs/platform/ b4a io/ with the guide described above, you’ll be able to set a custom api address with back4app and enable as well with various features, including using live query and changing your serverurl!