<div dir="ltr"><div>Hey <font face="Helvetica, Arial, sans-serif">Nando,<br><br></font></div><font face="Helvetica, Arial, sans-serif">Why not send a PR with those improvements?<br></font></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 7:14 AM, Doctor Mistral <span dir="ltr"><<a href="mailto:doctormistral@gmail.com" target="_blank">doctormistral@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#333399">
<font face="Helvetica, Arial, sans-serif">Hi all, <br>
<br>
i've just shared a fork (</font><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">drmistral/aerogear-cordova-<wbr>push
</font>from Release 3.1.0) containing some enhancements and
alignments with iOS side for the Android side of
aerogear-cordova-push plugin. Hope you may find it useful. <br>
<br>
Here is my changes:<br>
<br>
1. Set notifications number on app badge.<br>
</font>
<blockquote><font face="Helvetica, Arial, sans-serif">- As in the
iOS side, when the app is in background it is possible to set
the badge number from the same callback that is defined for iOS.
<br>
- Number is displayed even in the badge shortcut if defined.<br>
- Of course behaviour depends on the device but I'm tested it in
a set of devices with Android 4.4+ and it works.<br>
- It uses me.leolin.shortcutbadger.<wbr>ShortcutBadger.<br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif">2. Launch app from click
on notification.<br>
</font>
<blockquote><font face="Helvetica, Arial, sans-serif">This feature
was supposed to be present but unfortunately I never get it
working so I decided to check it and fix it. Now it seems
working fine.</font><br>
</blockquote>
3. Update notification of <font face="Helvetica, Arial, sans-serif">"</font><font face="Helvetica, Arial, sans-serif">opened"</font> stats <font face="Helvetica, Arial, sans-serif">on click on notification.<br>
</font>
<blockquote><font face="Helvetica, Arial, sans-serif">In Android,
notifications "</font><font face="Helvetica, Arial, sans-serif">
opened" stats (visible from aerogear admin) were updated just
when notification is received. Now (as for iOS) </font><font face="Helvetica, Arial, sans-serif">"opened" stats are updated
when the notification is opened by clicking on it (that provokes
app relaunch).<br>
<br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif">Suggestions are welcome.<br>
<br>
Cheers<br>
<br>
Nando<br>
</font>
</div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- Passos<br></div></div>
</div>