Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Only keeping latest one, why? #347

Closed rashmimhatre100 closed 5 years ago

rashmimhatre100 commented 5 years ago

First of all thanks for such a wonderful, easy to use package.

Every time it is showing only latest push notification why it is like that or am I doing something wrong? Eg. First push : hi Second Push : bye

 //client side
 Push.Configure({
  android: {
    senderID: 112,
    alert: true,
    badge: true,
    sound: true,
    vibrate: true,
    clearNotifications: false,
    icon: '../images/xyz.png',
    // iconColor: '',
  },
  ios: {
    alert: true,
    badge: true,
    sound: true,
    clearBadge: true
  }
});
    // server side

Push.Configure({
  apn: {
    certData   : Assets.getText('prod_Certificates.pem'),
    keyData    : Assets.getText('prod_key_Certificates.pem'),
    passphrase : '',
    production : true,
    gateway    : 'gateway.push.apple.com',
  },
  gcm: {
    apiKey        : "xyz",  // GCM/FCM server key
    projectNumber : 123,
  },
  // production: true,
  // 'sound': true,
  'badge' : true,
  // 'alert' : true,
  // 'vibrate' :true,
  // 'sendInterval': 15000, Configurable interval between sending
  'sendBatchSize': 100, //Configurable number of notifications to send per batch
  'keepNotifications': true,
});

Then it is overwriting first push by bye. I wants to keep all the push like whatsapp.

Thanks in advance.

rashmimhatre100 commented 5 years ago

Advance settings are mention in below settings, https://github.com/raix/push/blob/master/docs/ADVANCED.md#display-multiple-notifications-on-android