带有推送通知的iOS框架

问题描述:

我正在开发具有多种功能的IOS框架,我想添加推送通知服务.我使用 Easy APNS 创建了自己的推送通知服务.当他们集成我的SDK时,我不知道该如何与其他应用程序打交道.我的意思是,我不知道他们是否必须将其分发证书发送给我,是否可以将其添加到我的推送通知服务中,或者是否需要将某些内容集成到他们的推送通知服务中.

I am developing an IOS Framework with several functionalities, and I would like to add push notification services. I created my own push notification service using Easy APNS. I do not know how to deal with others apps when They integrated my SDK. I mean, I do not know, if they have to send me their distribution certificates, and I can add them in my push notifications service, or If I need to integrate something in their push notification servie.

我不知道如何处理可与其他应用程序和推送通知一起使用的框架.

I do not know how to deal with a Framework that will work with others app and push notifications.

假设您的服务器负责使用您的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.