<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>1 > 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 > 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 > The Android version I use on the testing device: 4.2.1 and Cordova 3.3<br>
<br></div>4 > 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> 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'll generate new ones);<br>
<br></div>6 > Please see attached the libraries I'm using on my Android app;<br><br></div>7 > The Javascript code inside my app:<br><br>document.addEventListener('deviceready', function(){<br> <br> var pushConfig = { // credentials not real; I thing this goes live...<br>
senderID: "278695548260",<br> pushServerURL: "<a href="https://aerogear-metalpush.rhcloud.com">https://aerogear-metalpush.rhcloud.com</a>", <br> variantID: "821460c5-ez9f-41d8-903a-61e7bd132038",<br>
variantSecret: "43b0e5e4-f217-4f29-b15b-85f8f5748ee6"<br> }<br> <br> try {<br> push.register(successHandler, errorHandler, {"badge": "true", "sound": "true",<br>
"alert": "true", "ecb": "onNotification", pushConfig: pushConfig});<br> <br> } catch (err) {<br> txt = "Erro encontrado.\n\n";<br> txt += "Descrição do erro: " + err.message + "\n\n";<br>
alert(txt);<br> }<br><br> function successHandler(result) {<br> var respush = document.getElementById("pushst");<br> respush.innerHTML = "Notificações: registo efetuado";<br> }<br>
<br> function errorHandler(error) {<br> var respush = document.getElementById("pushst");<br> respush.innerHTML = "Notificções: registo falhado";<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'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>