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

cumulative notifications #317

Closed batcode007 closed 6 years ago

batcode007 commented 6 years ago

I am developing a meteor app with version meteor version 1.6. I added the raix:push package and its sending notifications as desired. Now if more than one notification is sent, I want it to be displayed as an inbox, whereas as of now, if more than one notification is sent, the new notification overlaps on the previous one. I tried using this :

                   `Push.send({

                from: 'appName',

                title: 'New notification',

                text: 'test',
                badge: 1234                             //random four-digit number

                gcm: {
                    style: 'inbox',

                    summaryText: 'There are many notifications'
                },
                query: {
                    userId: user.userId,
                }
            });`

But it doesn't work. I have tried using payload too but the result was the same.

VioletaCalvo commented 6 years ago

You have to set the notId for each notification as detailed in ADVANCED.md documentation