Firebase sending multiple push notifications instead of stacking or replacing

早过忘川 提交于 2019-12-01 05:20:59

For me worked when I included in my 'notification' 2 lines:

collapse_key: 'your_app_unique_string',
tag: 'your_app_unique_string'

So the full code would be:

var payload = {notification: {
                                        title: "Mensaje de "+message.name,
                                        body: message.text,
                                        sound: "default",
                                        collapse_key: 'charlero',
                                        tag: 'charlero'
                                    }
                                };
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!