vendredi 17 octobre 2014

PushPlugin problem with cordova

Hi,

I'm trying to use the push notification for Android in a sencha touch project written using sencha Architect 3.1

If I add as documented the references in the project:


Ext.device.Communicator,

Ext.device.push.Sencha


and I try executing the call presented in the documentation:



Code:



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:');
console.log(' token: ' + token);
},
failure: function(error) {
console.log('# Push notification registration unsuccessful:');
console.log(' error: ' + error);
},
received: function(notifications) {
console.log('# Push notification received:');
console.log(' ' + JSON.stringify(notifications));
}
});

building with cordova i get the app stuck on initial screen

I also added the pushPlugin before compiling launcing via shell:


cordova plugin add http://ift.tt/1wdz66ePushPlugin.git


thanx a lot






PushPlugin problem with cordova

Aucun commentaire:

Enregistrer un commentaire