如何测试iOS推送通知?
我聘请了一位objective-c程序员来开发我的iphone应用程序,他编写了代码,现在我想测试推送通知服务,但他不会向我发送p12文件,他说他不能向我发送p12密钥,因为里面有他的私钥。
1)那么我可以自己创建p12文件吗?如果可以的话我该怎么做?不需要附在app上吗?我需要应用程序的 id 吗?
2)我可以将他添加为我的苹果开发者帐户下的开发者,以便他可以设置所有内容吗?
I hired an objective-c programmer to develop my iphone app, he wrote the code, and now I want to test the push notification service, but he wouldn't send me the p12 file, he said he cant send me the p12 key, because it contains his private key.
1) So can I create the p12 file myself, if so how can I do this? doesn't it need to be attached to the app? I need the app's id?
2) Can I just add him as a developer under my apple' developer account so he can set up everything?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
APNS 使用的密钥不需要与签名应用程序使用的密钥相同。它不应该是用于签署应用程序的密钥,因为它最终将安装在第四方数据中心的第三方硬件上的虚拟服务器上。如果更多的人可以访问开发服务器(例如,开发人员可以根据调试需要在自己的计算机上运行它),您甚至可能希望使用不同的开发和生产密钥。
您可以创建密钥对,向他发送 CSR,让他创建证书并将其发送给您,然后在您的服务器上使用该证书。
无论如何,您都需要在某个时候在您自己的帐户下设置该应用程序(假设您不会向他支付无限期支持费用),所以您最好现在就这样做。根据您对他的信任程度,您可以将他添加为开发人员,也可以自己完成所有操作。
我很确定您还可以授予帐户受限权限 - 足以上传 CSR、创建“iPhone 开发”证书和下载配置文件。您可以完成其余的工作(添加 UDID、设置应用程序 ID 和配置配置文件),对吗?
The key used with APNS does not need to be the same key used for signing apps. It should not be the key used for signing apps, since it will end up installed on a virtual server on third-party hardware in a fourth-party data center. You might even want to use different development and production keys, if more people will have access to the development server (e.g. developers might run it on their own computers as necessary for debugging).
You can create the keypair, send him the CSR, get him to create the cert and send that to you, and use the cert on your server.
You'll need to set the app up under your own account at some point anyway (assuming you're not going to pay him to support it indefinitely) so you might as well do it now. Depending on how much you trust him, you can add him as a developer or just do it all yourself.
I'm pretty sure you can also give accounts restricted permissions - just enough to upload a CSR, create an "iPhone Development" cert, and download provisioning profiles. You can do the rest (add UDIDs, set up app IDs, and configure provisioning profiles), right?
您可以创建自己的 .p12 文件,并且您的应用程序不依赖于推送通知证书。
.P12用于在正确的设备和APNS服务器之间进行身份验证和通信。
检查此教程
完成后,如果您有权访问或使用以下内容,则可以通过自己的服务器进行测试测试工具
Pushtry.com
You can create your own .p12 file and your app is not dependent on push notification certificate.
.P12 is used to authenticate and communicate between correct device and APNS server.
Check this tutorial
Once done you can test using by your own server if you have access or use the below tool to test
Pushtry.com