android - Sending push on Parse -


i need liitle bit help. , here code :

               `parsequery<parseuser> query=parseuser.getquery();                 query.whereequalto("username", buddy);                 query.getfirstinbackground();                  parsequery q1=parseinstallation.getquery();                 q1.whereequalto("owner", query);                  parsepush push = new parsepush();                 push.setquery(q1);                 push.setmessage("hey message");                 push.sendinbackground();` 

but not work, owner people want send push. when saving parseusername installation table on owner column.

here exception :

javalang.illegalargumentexception: invalid type parseobject: class com.parse.parsequery

what's wrong here ?

ok, if want send push single user , saving parseusername installation table can use code.

            parsequery q1=parseinstallation.getquery();             q1.whereequalto("owner", buddy);              parsepush push = new parsepush();             push.setquery(q1);             push.setmessage("hey message");             push.sendinbackground(); 

where buddy string parseusername


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -