<div dir="ltr"><div>Hi Fabio,</div><div><br></div>Can you have a look in the UPS logs? The device log might also provided some extra information. Running it from xcode you can see this log. Not being able to register can not be the cause of the certificate is not configured correctly, that will only prevent UPS from sending a message to the device.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo <span dir="ltr">&lt;<a href="mailto:fabio.turizo@gmail.com" target="_blank">fabio.turizo@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">Greetings.<div><br></div><div>Ia have an error when i try to register an user in a Cordova app to the Unified Push Server. The error callback in this code:</div><div><br></div><div><div><i>function registerPush(alias) {</i></div><div><i>    if(typeof push !== &#39;undefined&#39;){</i></div><div><i>        console.log(&#39;Registering push notifications for: &#39; + alias);</i></div><div><i>        $.ajax({</i></div><div><i>            url: &quot;push-config.json&quot;,</i></div><div><i>            dataType: &quot;json&quot;</i></div><div><i>        }).then(function (pushConfig) {</i></div><div><i>            pushConfig.alias = alias;</i></div><div><i>            push.register(onNotification, successHandler, errorHandler, pushConfig);</i></div><div><i><br></i></div><div><i>            function successHandler() {</i></div><div><i>                console.log(&#39;Succesfully registered to aerogear push!&#39;);</i></div><div><i>            }</i></div><div><i><br></i></div><div><i>            function errorHandler(message) {</i></div><div><i>                console.log(&#39;Error registering aerogear push: &#39; + message);</i></div><div><i>            }</i></div><div><i>        });</i></div><div><i>    }</i></div><div><i>}</i></div></div><div><br></div><div>Gets called with a &#39;null&#39; message. Do you have any suggestions to debug this issue further? I&#39;ve tried re-issuing a new APN certiticate but it didn&#39;t work.</div></div>
<br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</div>