在适用于 iOS 的 AdHoc Distribution Builds 上使用沙箱 APNS [英] Using sandbox APNS on AdHoc Distribution Builds for iOS

查看:29
本文介绍了在适用于 iOS 的 AdHoc Distribution Builds 上使用沙箱 APNS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读大量 Apple 的文档以及许多其他 SO 问题,但还没有找到这个特定问题的答案.

I've been reading a bunch of Apple's docs, as well as many other SO questions, but haven't found the answer to this particular question.

我有一个现有的工作流程,用于为 QA 成员和 Beta 测试人员生成 AdHoc 分发版本.现在我已经添加了对推送通知的支持,我希望这些通知路径也能够进行测试.

I have an existing workflow in place for generating AdHoc Distribution builds for QA members and beta testers. Now that I've added support for push notifications, I'd like those notification paths to be able to be tested as well.

我的印象是,开发人员构建,使用开发配置文件签名,生成用于沙箱/开发 APNS 环境的令牌,分发构建,使用分发配置文件签名(无论是用于临时分发还是AppStore Distribution),为生产 APNS 环境生成令牌.我相信这可以通过打开不同的 .mobileprovision 文件并检查 aps-environment 键来确认.

I'm under the impression that Developer builds, signed with a Development provisioning profile, generate tokens that for the sandbox/development APNS environment, and Distribution builds, signed with a Distribution provisioning profile (whether that be destined for AdHoc Distribution OR AppStore Distribution), generate tokens for the production APNS environment. I believe this can be confirmed by opening the different .mobileprovision files, and examining the aps-environment key.

我想知道是否有办法让我的 AdHoc Distribution 构建使用沙箱 APNS 环境,而不是生产 APNS 环境.

I'd like to know if there's a way to have my AdHoc Distribution builds use the sandbox APNS environment, rather than the production APNS environment.

如果我真的想让 QA 和 Beta 测试人员使用沙箱 APNS,我是否必须找到一种方法让他们运行开发版本,而不是分发版本?

If I really wanted QA and beta testers to use sandbox APNS, would I have to somehow find a way to allow them to run development builds, rather than distribution builds?

或者我对事情运作方式的假设偏离了基础?(参考这篇文章这篇文章)

Or are my assumptions about the way things work way off base? (referenced this post and this post)

推荐答案

我确实在 APNS 环境的上下文中发现了一些对 AdHoc 的提及:

I did found some mention to AdHoc in the context of APNS environments :

注意:推送服务有单独的长连接对于每个环境.操作系统建立一个持久的连接到沙盒环境以进行开发构建;特别指定和分发版本连接到生产环境.

Note: There is a separate persistent connection to the push service for each environment. The operating system establishes a persistent connection to the sandbox environment for development builds; ad hoc and distribution builds connect to the production environment.

它取自 技术说明 TN2265.我想这个注释确认你不能在 AdHoc 发行版中使用沙箱环境.

It's taken from Technical Note TN2265. I guess this note confirms that you can't use the sandbox env in AdHoc distribution.

这篇关于在适用于 iOS 的 AdHoc Distribution Builds 上使用沙箱 APNS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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