且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

带有推送通知的 IOS 框架

更新时间:2023-02-26 21:13:15

假设您的服务器负责向所有使用您的 SDK 的应用程序发送推送通知,您需要从这些应用程序的开发人员那里获取他们的推送证书.

Assuming that your server is responsible for sending push notifications to all the applications using your SDK, you'll need to get from the developers of those app their push certificates.

我假设您的 SDK 将处理从应用程序到您的服务器的设备令牌发送.您必须在服务器中知道哪个设备令牌属于哪个应用程序.

I'm assuming that your SDK will handle the sending of the device token from an application to your server. You'll have to know in your server which device token belongs to which application.

对于您希望为其发送推送通知的每个应用程序,您必须使用该应用程序的开发人员提供的证书与 APNS 保持单独的连接.

For each application for which you wish to send push notifications, you'll have to maintain a separate connection to APNS using the certificate supplied by the developer of that application.