<div dir="ltr">Yes,<div>that&#39;s why I directly mentioned the Sender API (so Native Lib is implicitly included ;) ) </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 8:13 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</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">I agree, would be for sure a nice option, even for the native Android lib?</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 7:54 AM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.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">Hi !<div><br></div><div>Thanks a lot for this tip and indeed I think it&#39;s worth a discussion to see if we could add some of these (android specific)  keys to our sender API.</div><div><br></div><div>Sebi</div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 5:44 AM, Kelvin Lunsford <span dir="ltr">&lt;<a href="mailto:kelvin@qantel.com" target="_blank">kelvin@qantel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On ios the message text wraps when a long message is displayed but on android only one line is displayed by default, truncating if too long.<br>
<br>
In a previous thread Erik pointed out that there is a lot of freedom for how messages are displayed in the Android notifications panel by making changes to NotificationMessageHandler.java.<br>
<br>
I coded up a change so I could test BigTextStyle in android.  Using BigTextStyle on android lets the text wrap to multiple lines.<br>
<br>
With the change I can use a UPS request like:<br>
{<br>
    &quot;alias&quot;:[&quot;someuser&quot;],<br>
    &quot;message&quot;:{<br>
       &quot;alert&quot;:&quot;a long message&quot;&quot;,<br>
       &quot;badge&quot;:33,<br>
       &quot;gglbigtxt&quot;:&quot;a long message&quot;,<br>
       &quot;gglsummry&quot;:&quot;unread count&quot;,<br>
       &quot;gglinfo&quot;:&quot;33&quot;<br>
   }<br>
}<br>
to display wrapping messages in both android and ios.  Adding a summary line for the count value helps mitigate the missing badges on android.<br>
<br>
I added the &quot;gglinfo&quot; key to display any value in the info area. The &quot;msgcnt&quot; key displays in the info area but will not display a number less than 1.<br>
<br>
In NotificationMessageHandler.java before the line:<br>
<br>
    manager.notify(appName, NOTIFICATION_ID, builder.build());<br>
<br>
add:<br>
<br>
    String tmp;<br>
    if ((tmp = extras.getString(&quot;gglbigtxt&quot;)) != null) {<br>
      NotificationCompat.BigTextStyle bigStyle = new NotificationCompat.BigTextStyle().bigText(tmp);<br>
      if ((tmp = extras.getString(&quot;gglsummry&quot;)) != null)<br>
        bigStyle.setSummaryText(tmp);<br>
      if ((tmp = extras.getString(&quot;gglbigttl&quot;)) != null)<br>
        bigStyle.setBigContentTitle(tmp);<br>
      builder.setStyle(bigStyle);<br>
    }<br>
    if ((tmp = extras.getString(&quot;gglinfo&quot;)) != null)<br>
      builder.setContentInfo(tmp);<br>
<br>
<br>
I&#39;m not recommending this be added to the plugin project as is, but it might be worth looking at.<br>
<br>
- Kelvin<br>
<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></div>
</div></div><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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>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>
</font></span></div>
<br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">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>
<br></blockquote></div><br></div>