<div dir="ltr">fixed the issue:<div><a href="https://issues.jboss.org/browse/AGCORDOVA-132">https://issues.jboss.org/browse/AGCORDOVA-132</a><br></div><div><br></div><div>pr:</div><div><a href="https://github.com/aerogear/aerogear-cordova-push/pull/90">https://github.com/aerogear/aerogear-cordova-push/pull/90</a><br></div><div><br></div><div>if you like you could try it out</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 6:25 PM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes this is an error in the plugin, actually 2 errors it&#39;s not a bundle (it should be a string) and it&#39;s not called userData (but user-data). </div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 12:21 PM, aamagdi <span dir="ltr">&lt;<a href="mailto:aamagdi@ejada.com" target="_blank">aamagdi@ejada.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I tried to send a push notification message using the rest sender api as<br>
below<br>
{&quot;message&quot;: {<br>
  &quot;alert&quot;: &quot;test123&quot;,<br>
   &quot;user-data&quot;: {<br>
            &quot;somedata&quot;:&quot;0&quot;,<br>
            &quot;somedata2&quot;:&quot;1234&quot;<br>
   }<br>
}}<br>
if the application in the foreground I can read the &quot;user-date&quot; correctly<br>
under the payload object on the notification received call back, but if the<br>
application wasn&#39;t in the foreground the object doesn&#39;t contain the payload<br>
data (&quot;user-date&quot;).<br>
<br>
I make a quick review of the plugin code for Android and found that in this<br>
part<br>
NotificationMessageHandler.java -&gt; line 77 (Message message = new<br>
Message(extras);) you are creating a new message object from the extras<br>
variable ;that have all the data; then in<br>
Message.java -&gt; line 46 in the class constructor<br>
    public Message(Bundle extras) {<br>
        this(extras.getString(&quot;alert&quot;), extras.getString(&quot;sound&quot;),<br>
                Integer.parseInt(extras.getString(&quot;badge&quot;)),<br>
                extras.getString(&quot;aerogear-push-id&quot;),<br>
                *extras.getBundle(&quot;userData&quot;));*<br>
    }<br>
there is not &quot;userData&quot; field under extras, so this will result of ignoring<br>
all other payload data.<br>
<br>
Could you please check it<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/Aerogear-Cordova-Push-Plugin-Android-Issue-tp441.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.n5.nabble.com/Aerogear-Cordova-Push-Plugin-Android-Issue-tp441.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</div>