<div dir="ltr">yeah, here we do it: <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/GCMPushNotificationSender.java#L102-L107">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/GCMPushNotificationSender.java#L102-L107</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 13, 2016 at 6:57 PM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So I had a post on my Google+ (I know that was my reaction too) page from a user who was having trouble with UPS, user-data, and Android. I'm not sure WHERE his problem is, but I will describe it here and we can discuss further.<div><br></div><div>Let's say we send the following to UPS using the sender API : </div><div><br></div><div><div>{</div><div> "message": {</div><div><span style="white-space:pre-wrap">        </span>"alert" : "Remote service failed. View FAQs.",</div><div><span style="white-space:pre-wrap">        </span>"sound": "default",</div><div><span style="white-space:pre-wrap">        </span>"badge": -1,</div><div><span style="white-space:pre-wrap">        </span>"user-data": {</div><div><span style="white-space:pre-wrap">                </span>"SXM": {</div><div><span style="white-space:pre-wrap">                        </span>"CATEGORY" : "SERVICE",</div><div><span style="white-space:pre-wrap">                        </span>"SERVICETYPE": "Remote",</div><div><span style="white-space:pre-wrap">                        </span>"SRID": "BB4FC7F0-15E9-11E6-9F41-0050569C3256",</div><div><span style="white-space:pre-wrap">                        </span>"APPCONTENT": "UNKNOWN",</div><div><span style="white-space:pre-wrap">                        </span>"STATUS": "FAIL",</div><div><span style="white-space:pre-wrap">                        </span>"STATUSCHANGE_DATETIME": "UNKNOWN",</div><div><span style="white-space:pre-wrap">                        </span>"URL": "XYZABC.com"</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">        </span>}</div><div> }</div><div> }</div></div><div><br></div><div>Android will receive the following message bundle from Google : </div><div><br></div><div><div>Bundle[</div><div> {aerogear-push-id=3f2b9477-fc9e-463a-94d7-d62bf55706e1, </div><div> SXM={CATEGORY=SERVICE, SERVICETYPE=Remote, SRID=BB4FC7F0-15E9-11E6-9F41-0050569C3256, APPCONTENT=UNKNOWN, STATUS=FAIL, STATUSCHANGE_DATETIME=UNKNOWN, URL=XYZABC.com}, </div><div> alert=Remote service failed. View FAQs., </div><div> badge=-1, </div><div> sound=default, </div><div> collapse_key=do_not_collapse}</div><div>]</div></div><div><br></div><div>As we can see, several things have happened. 1) user-data has been rolled up into a root element, and the SXM root object's JSON body has been stripped of its jsonness. IDEALLY we would be able to keep the body of userdata as a string for user's to handle themselves. </div><div><br></div><div>I THINK this is an issue with how UPS converts the message for sending to GCM, but i haven't researched that far.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Summers</div></font></span></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>