I am developing an app for Android, which has push notification system using loop ().
I have already set the parse properly on my app because they give instructions on my tutorial, and it is working - if I "manually" notifications from the pars panel I do not send any problem.
But when I try to send push notifications from within the app, it is never sent to the destination channel, and it is also not visible in the pars log.
Take a look at my code:
public class apps android.ap.ap.app (public application) {} override public wide on creatives () {Super. Connet ()); Start parse.in (this, "MY_CODE", "MY_OTHER_CODE"); ParsePush.subscribeInBackground (""); Parasupush push = new parspicious (); Push.setChannel ("my_example_channel"); Push.setMessage ("Test Message"); Push.sendInBackground (New SendCallback () {@Override public void done (com.parse.ParseException e) {if (e == blank) log D. ("push", "success!"); Other logs d. (" Push "," failure ");}}); }
The callback provides zero - no errors are shown and it logs "success", and the other mobile that I am using to test the app Subscribed to "my_example_channel" - If I send them through the Pars Dashboard then notifications are received.
I subscribe to "push send code" (last code, "parse intrise ..." and "parspush" on a button click and on an on-one action "on crat" method, but the result is same
I believe I solved it! It looks like you have your parset setting Client side push must be enabled in Settings> Push> Client push enabled?> Yes. Last night I was struggling with it!
No comments:
Post a Comment