Saturday, 15 June 2013

java - Why does my ParsePush not sending from an Android client when attaching a URI? -


I have the following information code working:

  Send private notice (parsusar User) {Pursush Push = new parspicious (); ParseQuery & LT; ParseInstallation & gt; Query = parse installation.jitine (); Query.whereEqualTo ("Users", Users); Push.setQuery (query); Push.setMessage ("Notice!"); Push.sendInBackground (); }  

However, when I try to attach a URL to the notification, it does not send (the receiver does not receive it and there is no entry in the push console), But no errors are logged or thrown when I debug it.

  Private Zero Send Notification (Parseus User, String Yuri) {Pursush Push = New Parspash (); ParseQuery & LT; ParseInstallation & gt; Query = parse installation.jitine (); Query.whereEqualTo ("Users", Users); Push.setQuery (query); JSONObject Data = New JSONObject (); Try {Data.put ("Warning", "Notification!"); Data.put ("Yuri", Yuri); } Hold (JasonXEpisode E) {Log. W ("Send Notification", "Send Failure"); E.printStackTrace (); } Push.setData (data); Push.sendInBackground (); }  

According to this post apparently, you will not send notifications with a URI When using client push as a safety caution, which makes sense, but it would be nice if it raises an error to tell you.


No comments:

Post a Comment