I am using Parse. When I send a push notification from a website to my phone (specific channel), it works fine. But when I try to send a notification from my phone to the same channel (or all), it does not send.
I submit it with the onClick button.
(The code is very long, so I cut out the corresponding fragments)
(This is an oncreate btw post)
Parse.initialize(this, "CODE", "CODE"); ParseInstallation.getCurrentInstallation().saveInBackground(); ParsePush.subscribeInBackground("Channel1"); //PushService.startServiceIfRequired(this);
-
case R.id.sendButton: ParsePush push = new ParsePush(); String message = "Test" ;
(Yes, the button works)
Can anybody help me? What am I doing wrong?
Can provide additional information if desired!
Yes, I read the Parse documentation. I just can't understand what I'm doing wrong here. I am also trying ParsePush.send () ;, ignoring threads. Does not work.
source share