Results 1 to 2 of 2

Thread: Contribution Cordova Push Notifications for phonegap

  1. #1
    Sencha Premium Member jamesjara's Avatar
    Join Date
    Apr 2009
    Location
    costa rica
    Posts
    62
    Vote Rating
    1
      0  

    Default Contribution Cordova Push Notifications for phonegap

    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

    dsad
    Code:
     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);
                 }
             }
        });
    SB.... will see

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    296
      0  

    Default

    Looks cool. Thanks for sharing your work with the community!

Similar Threads

  1. How to use the native push notifications
    By coletek in forum Sencha Touch 2.x: Q&A
    Replies: 14
    Last Post: 24 Mar 2014, 9:07 AM
  2. How to make iOS Push notifications work (with phonegap)
    By UnbekanntesPferd in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 17 Sep 2013, 7:01 AM
  3. Android Push notifications
    By jllunell in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 12 Jun 2013, 4:33 AM
  4. Push Notifications
    By arthurva in forum Sencha Touch 2.x: Q&A
    Replies: 12
    Last Post: 11 Oct 2012, 8:28 AM
  5. Phonegap best solution for push notifications?
    By estesbubba in forum Sencha Touch 2.x: Discussion
    Replies: 5
    Last Post: 1 Jun 2012, 2:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •