<div dir="ltr">Sounds good!  I will work on this tomorrow.  Again, I really appreciate your help!!!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 4:36 PM, 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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jun 2, 2015 at 10:24 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So please correct me if I am wrong...<div><br></div><div>  if we call register() and set our Java REST service in the config, we will need to take the payload passed into the REST service, parse out the device token (which you said is sent there automatically), and send that to Aerogear using the method we are already currently using to register device tokens with Aerogear in the Service? (since the REST service can talk to the UPS)</div><div><br></div><div>is this correct??</div></div></blockquote></span><div>Yes :) </div><div>But you can also keep the payload as is and just pass it to the UPS endpoint (since it&#39;s already the payload he expects)  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Jun 2, 2015 at 4:20 PM, Sebastien Blanc [via aerogear-dev] <span dir="ltr">&lt;<a href="http:///user/SendEmail.jtp?type=node&amp;node=11744&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span><span>

        <div dir="ltr">You don&#39;t have to worry about that :) the AeroGear push plugin will already include the device token in the payload, in fact you don&#39;t have to worry at all about the payload, just call register()</div></span></span><div><div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Jun 2, 2015 at 10:16 PM, delalis <span dir="ltr">&lt;<a href="http:///user/SendEmail.jtp?type=node&amp;node=11743&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span><div dir="ltr">ah okay.  I didnt think of putting the REST service in the config.  But then what would we pass to the REST service as the device token to pass to aerogear in the subsequent Java call?  in the classic push plugin, the onsuccess(event) came back with a device token that we would then send to the REST service to register with Aerogear using a Java call.</div></span><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 4:11 PM, Sebastien Blanc [via aerogear-dev] <span dir="ltr">&lt;<a href="http:///user/SendEmail.jtp?type=node&amp;node=11741&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">

        <div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div><span>On Tue, Jun 2, 2015 at 9:51 PM, delalis <span dir="ltr">&lt;<a href="http:///user/SendEmail.jtp?type=node&amp;node=11739&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;</span> wrote:<br><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">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>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></span><span><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></span></div></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div>
<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" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11737.html</a><br>
</div></div><div><div><div><div><span>Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
</span></div></div><a href="http:///user/SendEmail.jtp?type=node&amp;node=11739&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div></div>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&amp;node=11739&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11739.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11739.html</a>
        </div><div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Android Background push notifications not working, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br></div></div><span><hr align="left" width="300">
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11741.html" rel="nofollow" link="external" target="_blank">Re: [aerogear-dev] Sndroid Background push notifications not working</a></span><div><div><br><span>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" rel="nofollow" link="external" target="_blank">aerogear-dev mailing list archive</a> at Nabble.com.<br></span></div></div><span><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="http:///user/SendEmail.jtp?type=node&amp;node=11743&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></span></blockquote></div><br></div><span>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&amp;node=11743&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </span></div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div><div><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></div></div><a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11743.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11743.html</a>
        </div><span><div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Android Background push notifications not working, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></span></blockquote></div><br></div><div><div>


        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notifications-not-working-tp11716p11744.html" target="_blank">Re: [aerogear-dev] Sndroid Background push notifications not working</a><br>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" target="_blank">aerogear-dev mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
</div></div><a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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></blockquote></div><br></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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>