简体   繁体   English

处理来自多个服务器的远程推送通知

[英]Handling remote push notifications from multiple servers

Within Cordova, would like to handle push notifications coming from 2 different servers, one would be from the Marketing area , containing promotions and offers, and the second would be from our own server, ( Developer area ) where push notifications would contain a different set of possible actions. 在Cordova中,要处理来自2个不同服务器的推送通知,一个来自营销区域 ,其中包含促销和优惠,另一个来自我们自己的服务器( 开发人员区域 ),其中推送通知将包含不同的集合可能采取的行动。

I understand that registering to APN and GCM only happens once per device & app, so is there a way i could handle differently depending on the server they come from? 我了解每个设备和应用程序向APN和GCM注册仅发生一次,所以有没有一种方法可以根据它们来自的服务器来进行不同的处理?

The client is built with Ionic. 客户端是使用Ionic构建的。

I don't understand the question - the different pushes have different payloads, therefore the app can know which push it has received according to what the payload is and therefore it can handle them differently. 我不明白这个问题-不同的推送有不同的有效负载,因此应用程序可以根据有效负载是什么知道它收到了哪个推送,因此可以不同地处理它们。 What did I miss about your question? 我错过了您的问题吗?

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

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