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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -