<div dir="ltr"><div>Hi Matthias,</div><div><br></div>The callback is called once you launch the application by &#39;clicking&#39; the notification on the notification bar. If you don&#39;t want to display a message on android send a message without alert. This will not launch the application, but it will be available as soon as the app is launched again.<div><br></div><div>Hope this helps,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 30, 2015 at 4:49 PM, Bourillon, Matthias <span dir="ltr">&lt;<a href="mailto:Matthias.Bourillon@saint-gobain.com" target="_blank">Matthias.Bourillon@saint-gobain.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 lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have carefully read and applied the procedure to use Aerogear Push in a Cordova / Ionic App (<a href="https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/" target="_blank">https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/</a>).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Everything is OK except that my onNotification() JS method is not called when my Android App is running in background. The notification is displayed as it arrives and I am not able to apply any logic before it reaches
 the notification bar.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">We are using push to send some instructions to our App which should not always be displayed as-is to end users. Is there a way to customize or apply some logic when an App is in background? Or is this a limitation we
 have to deal with?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Matthias<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</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"><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</div>