带有推送通知的 IOS 框架 [英] IOS Framework with push notifications

查看:27
本文介绍了带有推送通知的 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.

这篇关于带有推送通知的 IOS 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆