我在我的cordova应用程序中使用pushplugin for android。单条消息没有问题。在应用程序最小化时发送多条消息时,我只看到最后一条通知取代了以前的通知。
我关注了 https://github.com/manjeshpv/PushPlugin/commit/cdd1f56ef7a6a2033a196546cd6b946dc17044ae https://github.com/manjeshpv/PushPlugin/commit/d073ed105aafb1f8793ea3c9a2b5b04e8293f507
这些都不适合我。我也在有效载荷中使用 notId。在我的 php 文件中:
$message = '{"conversation":"'.$message.'", "phoneNumber":"'.$phoneNumber.'", "file":"text", "notId":"'.time().'"}';
几乎没有类似的问题,但问题在那里没有解决。 如何在android中处理多个推送通知