iOS APNS开发[沙盒]与生产 [英] iOS APNS Development [sandbox] vs Production

查看:340
本文介绍了iOS APNS开发[沙盒]与生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我在弄清楚APNS(推送通知)开发人员(沙箱)和生产模式之间的主要区别时遇到了一些麻烦.特别是我有以下问题:

Guys I'm having some trouble figuring out the key differences between the APNS (push notification) Developer (Sandbox) and Production modes. In particular I have the following questions:

1)我可以使用仅针对APNS开发人员证书注册的推送通知在应用商店中启动一个应用吗?还是我需要使用APNS Production来创建要在应用商店中启动的应用?

1) Can I launch an app on the app-store with Push Notifications that is only registered for the APNS Developer Certificate? Or do I need to use to use APNS Production for apps I want to launch on the app store?

2)通常,除了开发中的APNS开发"和生产中的APNS生产"以外,还有哪些功能性原因可以为我的决策提供依据.特别是为什么我选择为我的应用程序完全实现APNS Developer证书,为什么不只在Production推送帐户上运行所有内容?

2) In general, what are the functional reasons other than "development on development APNS" and "production on production APNS" that would inform my decision. In particular why would I choose to implement an APNS Developer certificate for my app at all and why not just run everything on a Production push account?

这是苹果公司在其网站上所说的,但这并没有引起我的疑问:

Here's what Apple says on it's website but it doesn't get to the heart of my question:

开发:使用开发环境对提供者应用进行初始开发和测试.它提供与生产环境相同的服务集,但是服务器单元的数量较少.开发环境还充当虚拟设备,支持模拟的端到端测试. 您可以通过gateway.sandbox.push.apple.com(出站TCP端口2195)访问开发环境.

Development: Use the development environment for initial development and testing of the provider app. It provides the same set of services as the production environment, although with a smaller number of server units. The development environment also acts as a virtual device, enabling simulated end-to-end testing. You access the development environment at gateway.sandbox.push.apple.com, outbound TCP port 2195.

生产:在构建提供程序应用的生产版本时使用生产环境.使用生产环境的应用程序必须满足Apple的可靠性要求.

Production: Use the production environment when building the production version of the provider app. Apps using the production environment must meet Apple’s reliability requirements.

推荐答案

如果要将应用发布到应用商店,则需要使用生产配置文件,因此,通过APNS开发者证书发送的所有通知都不会到达您的应用使用了生产配置文件进行了签名.

If you want to post your app to the app store you will need to use a Production Provisioning Profile, therefore all notifications sent with APNS Developer Certificate will not arrive to your app signed with a Production Provisioning Profile.

为什么不只使用生产APNS证书?好吧,你可以这样做,但是...

Why not use only a production APNS certificate? Well you can do this but...

  • 要进行测试,您需要使用Production Ad Hoc Provisioning Profile来构建您的应用,这是编译时需要做的许多额外工作
  • 在开发中使用生产证书,因此使用临时构建,因此无法与调试器一起运行.使故障排除非常痛苦.
  • 测试通知使一切都投入生产,因此您必须格外小心

这篇关于iOS APNS开发[沙盒]与生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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