简体   繁体   English

将通知推送给不同开发人员的两个应用程序

[英]Push notifications to two apps by different developers

Company A is developing an app which it releases to it users and can send push notifications to them 公司A正在开发一个应用程序,它可以向用户发布并可以向他们发送推送通知

Company A has also has an open API because its service is so amazing and other companies want to develop there own apps to talk to its data. 甲公司也有一个开放的API,因为它的服务是如此出色,其他公司也希望开发自己的应用程序来与它的数据对话。

So company B comes along as builds its own app thats uses company A's API 因此,公司B伴随着使用公司A的API构建自己的应用程序

Is it possible that when company B talks to company A's API, part of the handshake is company A storing the push notification identifier of company's B app. 当公司B与公司A的API通信时,握手的一部分可能是公司A存储公司B应用程序的推送通知标识符。

So that in the future company A can send a push notification to users who use its own app offering but also users who have chosen to use company's B app to access company A's data. 这样,将来公司A可以向使用自己的应用程序产品的用户以及选择使用公司B应用程序访问公司A数据的用户发送推送通知。

Can you send a push to another developers app if you know its push identifier? 如果知道推送标识符,是否可以将推送发送到另一个开发人员应用?

Thanks 谢谢

To be a push notification provider for iOS you will need: 要成为iOS的推送通知提供商,您需要:

  1. Establish secured connection with APNS (Apple push notification service) ,this can be done by two ways: 与APNS(Apple推送通知服务)建立安全连接,这可以通过两种方式完成:

    • Certificate based - you will need the Private key of the app's push certificate which issued on the developer portal. 基于证书-您将需要在开发人员门户上发布的应用程序推送证书的私钥
    • Token based - you will need a Private key from the developer to generate JWT (JSON web token) to connect to APNS. 基于令牌-您将需要开发人员的私钥来生成JWT(JSON Web令牌)以连接到APNS。
  2. Know where to send the push to, this is done by a device token (which contains the specific device and app) which the app needs to send to the provider. 知道将推送发送到哪里,这是由应用程序需要将其发送到提供程序的设备令牌(包含特定的设备和应用程序)完成的。

So if you want that Company A will be able to send push to Company A and Company B it will need: 因此,如果您希望公司A能够将推送发送给公司A和公司B,则需要:

  • Company A app to send device token to Company A server . 公司A将设备令牌发送到公司A服务器的应用
  • Company A private key and push certificate to be stored on Company A server . 公司私钥和推送证书要存储在公司A服务器上
  • Company B app to send device token to Company A server . 公司B应用程序将设备令牌发送到公司A服务器
  • Company B private key and push certificate to be stored on Company A server . 公司B的私钥和推送证书将存储在公司A的服务器上

Hope it helps. 希望能帮助到你。

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

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