<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 9:51 PM, delalis <span dir="ltr">&lt;<a href="mailto:delalis@gmail.com" target="_blank">delalis@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Thanks for writing back so quickly!<br>
<br>
1) Can&#39;t your &quot;Leatons&quot; REST Service  proxy the register request to the push<br>
server ?<br>
<br>
---Yes that is what we were doing before, the classic push plugin called<br>
register() which simply registered the token with APNS/GCM, and in the<br>
onSuccess function we would then send an AJAX call to Leatons REST service<br>
which would then put the device token we got back from the register() call<br>
into the Aerogear database using whatever methods Aerogears API exposed<br>
(sorry, I think that is what I meant by the Sender API)... so if you suggest<br>
using the REST service as a proxy to the push server and bypass the<br>
register() function altogether, how would we hook up the client<br>
onNotification() handler?<br>
<br>
2) Or maybe just let Leaton accept the register request made by the aerogear<br>
<span class="">plugin and store the json payload, later a service can submit that to the<br>
UnifiedPush Server.<br>
</span>---Again, how would we hook up the phonegap client onNotification() handler<br>
if we arent calling register from the clients javascript code??<br></blockquote><div><br></div><div>I meant  : you still use the plugin javascript code register() but just make sure that your backend API (Leaton or whatever) accept the path and the json payload so :</div><div><br></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">POST </span><span style="color:rgb(0,0,0);font-size:12.8000001907349px">http//myleatonservice/rest</span><span style="color:rgb(0,0,0);font-size:12.8000001907349px">/registry/device  + JSON Payload</span><br></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8000001907349px">You just point to &quot;</span><font color="#000000"><span style="font-size:12.8000001907349px">http//myleatonservice/rest&quot; in you push-config, &quot;/registry/device&quot; will be added automatically by the plugin. </span></font></div><div><font color="#000000"><span style="font-size:12.8000001907349px"><br></span></font></div><div><font color="#000000"><span style="font-size:12.8000001907349px">Could sound hacky but worth to explore. </span></font></div><div><font color="#000000"><span style="font-size:12.8000001907349px"><br></span></font></div><div><font color="#000000"><span style="font-size:12.8000001907349px">This way you still hookup your onNotification() handler</span></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11737.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11737.html</a><br>
<div class=""><div class="h5">Sent from the aerogear-dev mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div></div>