简体   繁体   English

使用ionic和PushPlugin堆叠多个推送通知

[英]Stack multiple push notifications with ionic and PushPlugin

I've implemented in my hybrid mobile up push notifications on Android using Ionic Framework and PushPlugin 我已经在Android上使用Ionic Framework和PushPlugin在混合移动上推通知中实现了

I need to send 3 notifications in the same timeframe for 3 most important articles. 我需要在3个最重要的文章的同一时间范围内发送3个通知。 By sending in the payload notId I managed to send 3 notification without overwriting each other. 通过发送有效载荷notId,我设法发送了3条通知,而不会彼此覆盖。

Now I'm trying to group them, similar to the attached image, the problem is that I can't find any information related to this, except some heavy Java. 现在,我试图将它们分组,类似于所附的图像,问题在于,除了一些笨拙的Java外,我找不到与此有关的任何信息。 Maybe someone can point me how I could group my notifications that in expanded view would display all 3 of them under one tree ? 也许有人可以指出我如何将通知组合在一起,以便在扩展视图中将所有三个通知显示在一棵树下?

I wasn't able to make it work the way I want it, not without creating my own plugin. 我无法按照我想要的方式工作,而不是没有创建自己的插件。 I ended up changing the plugin with https://github.com/phonegap/phonegap-plugin-push#inbox-stacking as the one I was using was outdated and unmaintained. 我最终使用https://github.com/phonegap/phonegap-plugin-push#inbox-stacking更改了插件,因为我使用的插件已过时且未维护。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM