简体   繁体   English

从一个 Pinpoint 项目向多个 iOS 应用程序发送推送通知

[英]Send push notifications from one Pinpoint project to multiple iOS apps

I am having two iOS apps managed with the same backend.我有两个使用相同后端管理的 iOS 应用程序。 Can I use the same Pinpoint project to send push notifications to both apps?我可以使用同一个 Pinpoint 项目向两个应用程序发送推送通知吗?

There are two ways to configure notifications on Pinpoint:在 Pinpoint 上配置通知有两种方法:

  • AuthKey授权键
  • Certificate证书

If I use the certificate, it will only send notifications to the app corresponding to this certification.如果我使用证书,它只会向与此证书对应的应用程序发送通知。 There is no way to add the other certificate.无法添加其他证书。

The AuthKey is one for all apps, but we have to set a bundle ID when we configure it on Pinpoint. AuthKey是适用于所有应用程序的,但是我们在 Pinpoint 上配置它时必须设置一个 bundle ID。 Will it be able to send notifications to the other app?它能向其他应用程序发送通知吗?

I don't think this is possible.我认为这是不可能的。

To setup push notifications you have to generate a push notification certificate which is individual to each iOS app and as far as I'm aware this is compulsory to setup push notifications.要设置推送通知,您必须生成一个推送通知证书,该证书对于每个 iOS 应用程序都是单独的,据我所知,这是设置推送通知所必需的。 So regardless if you use AuthKey you would still need both APNS certificates.因此,无论您是否使用 AuthKey,您仍然需要两个 APNS 证书。

You can see more detail in the Local and Remote Notification Programming Guide https://developer.apple.com/library/archive/documentation/NetworkingInte.net/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194-CH8-SW1您可以在本地和远程通知编程指南中看到更多详细信息https://developer.apple.com/library/archive/documentation/NetworkingInte.net/Conceptual/RemoteNotificationsPG/APNSOverview.html#//apple_ref/doc/uid/TP40008194 -CH8-SW1

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

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