I have a relatively simple app that shows a quote to the user. When the user has seen the quote, he is added to the user table as a "seen" relationship, so that he does not see it again. However, when I want to retrieve new quotes, which the user has not seen, it still gives the quote seen.
ParseUser user = ParseUser.getCurrentUser (); Last ParseQuery & lt; Quote & gt; NewQuotes = new parquete & lt; Quote & gt; (Quote.class); Last Pars Relation & lt; ParseObject & gt; Seen quotes = usertelelment ("seen quotes"); NewQuotes.whereDoesNotMatchKeyInQuery ("objectId", "objectId", viewed Quotes.getQuery ()); NewQuotes.findInBackground (new FindCallback & lt; citation & gt; () {@ Override public was canceled (list & quot; quote> quote, parsection e) {// still there are quotes that have been seen}} );
What am I doing wrong?
No comments:
Post a Comment