PDA

View Full Version : Contribution Cordova Push Notifications for phonegap



jamesjara
1 Feb 2016, 11:31 AM
Sencha cordova push notifications let your application notify a user of new messages or events even when the user is not actively using your application

https://github.com/jamesjara/CordovaPushNotifications
(https://github.com/jamesjara/CordovaPushNotifications)
dsad

Ext.create('Ext.ux.CordovaPushNotifications',{
gcmServer : '..../gcmGoogleServer/public/api/register',
userName: '[email protected]',
password: 'password',
userId: '1',
android: {
senderID: "684600745042",
icon: "phonegap",
iconColor: "blue"
},
ios: {
alert: "true",
badge: "true",
sound: "true"
},
windows: {},
listeners: {
'registration': function() {
console.log(" registration listener");
},
'registered': function() {
console.log(" registered with gcm server ");
},
'notification': function(data) {
console.log(" notification listener");
},
'error': function(error) {
console.log("error contact administrator" + error.message);
}
}
});

Gary Schlosberg
1 Feb 2016, 2:32 PM
Looks cool. Thanks for sharing your work with the community!