<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>1 &gt; The Openshift explanation:<br><br><a href="https://www.openshift.com/blogs/mobile-push-simplified-with-the-aerogear-push-server-on-openshift" target="_blank">https://www.openshift.com/blogs/mobile-push-simplified-with-the-aerogear-push-server-on-openshift</a><br>


<br></div>2 &gt;  I insist: the documentation / examples you give about the correct URLs to use is incoherent and not enough clear (sorry, this is my opinion);<br><br></div>3 &gt; The Android version I use on the testing device: 4.2.1 and Cordova 3.3<br>


<br></div>4 &gt; As I told you  in my previous post the device registers correctly, meaning there is a token, etc of it on the server. See picture attached;<br></div><br>5&gt; Yes there is an account, etc on Google service, where the Google cloud Messaging for Android is set to on (if you want I can send to you the credentials; later on I&#39;ll generate new ones);<br>

<br></div>6 &gt; Please see attached the libraries I&#39;m using on my Android app;<br><br></div>7 &gt;  The Javascript code inside my app:<br><br>document.addEventListener(&#39;deviceready&#39;, function(){<br>    <br>    var pushConfig = {                      // credentials not real; I thing this goes live...<br>
          senderID: &quot;278695548260&quot;,<br>          pushServerURL: &quot;<a href="https://aerogear-metalpush.rhcloud.com">https://aerogear-metalpush.rhcloud.com</a>&quot;, <br>          variantID: &quot;821460c5-ez9f-41d8-903a-61e7bd132038&quot;,<br>
          variantSecret: &quot;43b0e5e4-f217-4f29-b15b-85f8f5748ee6&quot;<br>        }<br> <br>    try {<br>      push.register(successHandler, errorHandler, {&quot;badge&quot;: &quot;true&quot;, &quot;sound&quot;: &quot;true&quot;,<br>
        &quot;alert&quot;: &quot;true&quot;, &quot;ecb&quot;: &quot;onNotification&quot;, pushConfig: pushConfig});<br>        <br>    } catch (err) {<br>      txt = &quot;Erro encontrado.\n\n&quot;;<br>      txt += &quot;Descrição do erro: &quot; + err.message + &quot;\n\n&quot;;<br>
      alert(txt);<br>    }<br><br>    function successHandler(result) {<br>     var respush = document.getElementById(&quot;pushst&quot;);<br>     respush.innerHTML = &quot;Notificações: registo efetuado&quot;;<br>  }<br>
<br>  function errorHandler(error) {<br>    var respush = document.getElementById(&quot;pushst&quot;);<br>     respush.innerHTML = &quot;Notificções: registo falhado&quot;;<br>  }<br>  <br>  function onNotification(e) {<br>
    alert(e.alert);<br>  }<br>            <br>}, false);<br><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">I think I&#39;m answering to all your questions. Any help appreciated.<br>
</div><div class="gmail_quote">Feel free to ask whatever you need to enlighten this situation.<br><br></div><div class="gmail_quote">Miguel<br><br></div><div class="gmail_quote"><br></div><br></div></div></div></div></div>
</div></div></div></div></div></div>