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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -