Live Query subscription request being sent twice

Hi all

My subscription request being sent twice and I only want 1 callback how do i resolve this?


ParseLiveQueryClient parseLiveQueryClient = null;

    try {
        parseLiveQueryClient = ParseLiveQueryClient.Factory.getClient(new URI("URL"));
    } catch (URISyntaxException e) {

    if (parseLiveQueryClient != null) {
        ParseQuery<ParseObject> parseQuery = new ParseQuery("Post");

        SubscriptionHandling<ParseObject> subscriptionHandling = parseLiveQueryClient.subscribe(parseQuery);

        subscriptionHandling.handleEvent(SubscriptionHandling.Event.CREATE, new SubscriptionHandling.HandleEventCallback<ParseObject>() {
            public void onEvent(ParseQuery<ParseObject> query, final ParseObject object) {
                Handler handler = new Handler(Looper.getMainLooper());
       Runnable() {
                    public void run() {
                        Log.d(TAG, "run: LiveQuery Incoming");
                        Date date = object.getCreatedAt();
                        DateFormat df = new SimpleDateFormat("EEE, HH:mm:ss d MMM yyyy ");
                        String reportDate = df.format(date);
                        ParseFile file = (ParseFile) object.get("IMG");

I believe live query subscription is a POST request. So if you have poor connection or for some other reason request didn’t get any response, sdk will automatically send same request again.

The connection is fine. I have the same subscription in a different class would both of them count as 2 requests meaning I would get 2 responses on each?