Reputation: 34780
I'm trying to query a very simple class on my Parse app:
public static void refreshNotifications(){
ParseQuery query = new ParseQuery("Notification");
query.orderByDescending("createdAt");
query.findInBackground(new FindCallback() {
@Override
public void done(List list, ParseException e) {
}
@Override
public void done(Object o, Throwable throwable) {
}
});
}
However, completion handler (neither done
method) is never called, not even with an error. I was on Parse SDK 1.8, and I've updated to 1.10, but the issue still remains regardless of the version. What am I doing wrong?
Upvotes: 0
Views: 316
Reputation: 960
Can you try with this
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> list, ParseException e) {
if (e == null) {
// no error
Log.d("DEBUG", "size of list " + list.size());
} else {
Log.d("DEBUG", "Error: " + e.getMessage());
}
}
});
Upvotes: 1