Has anyone managed to get a device token from iOS to execute push notifications. I've build a Sencha touch 2.0 application, packaged it for native use. But I can't seem to get any response out of the Ext.device.Push.
I don't get a succes nor failure event.
Code:
onRegister: function () {
Ext.device.Push.register({
type: Ext.device.Push.ALERT | Ext.device.Push.BADGE | Ext.device.Push.SOUND,
success: function (token) {
console.log('# Push notification registration successful:');
Ext.Msg.alert(' token: ' + token);
},
failure: function (error) {
console.log('# Push notification registration unsuccessful:');
Ext.Msg.alert(' error: ' + error);
},
received: function (notifications) {
console.log('# Push notification received:');
Ext.Msg.alert(' ' + JSON.stringify(notifications));
}
});
},