<div dir="ltr">does Aerogear push plugin&#39;s way of implementing the onNotification(e) give you back a device token for registration purposes after calling register()?  if so, then we can make a second call to the REST service after the onNotification is called...</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 4:16 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"><span class=""><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 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 class="h5"><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 class="h5">
<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 class="h5"><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 class=""><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></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><span class=""><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>


        
        
        
<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-tp11716p11741.html" target="_blank">Re: [aerogear-dev] Sndroid Background push notifications not working</a><div class="HOEnZb"><div class="h5"><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>
<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>