[Aerogear-users] Error registering for push notifications in iOS

Fabio Turizo fabio.turizo at gmail.com
Wed Sep 2 16:06:09 EDT 2015


Greetings.

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:

*function registerPush(alias) {*
*    if(typeof push !== 'undefined'){*
*        console.log('Registering push notifications for: ' + alias);*
*        $.ajax({*
*            url: "push-config.json",*
*            dataType: "json"*
*        }).then(function (pushConfig) {*
*            pushConfig.alias = alias;*
*            push.register(onNotification, successHandler, errorHandler,
pushConfig);*

*            function successHandler() {*
*                console.log('Succesfully registered to aerogear push!');*
*            }*

*            function errorHandler(message) {*
*                console.log('Error registering aerogear push: ' +
message);*
*            }*
*        });*
*    }*
*}*

Gets called with a 'null' message. Do you have any suggestions to debug
this issue further? I've tried re-issuing a new APN certiticate but it
didn't work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150902/1a51f8e7/attachment.html 


More information about the Aerogear-users mailing list