适用于开发、生产和阶段环境的 ios 推送通知最佳实践 [英] ios push notifications best practices for dev, prod and stage environments

查看:33
本文介绍了适用于开发、生产和阶段环境的 ios 推送通知最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对为不同环境 + 应用商店准备应用感到有些困惑.我有 3 个环境——dev、prod 和 stage,对于给定的 appId,我们得到了 dev 和 distribution(prod).

I'm a bit confused with prepping an app for different environments + app store. I have 3 environments- dev, prod and stage and it looks like for a given appId, we get dev and distribution (prod).

我应该将临时分发配置文件用于暂存环境,并将应用商店版本用于生产吗?我假设有 3 个不同的配置文件,我可以在一部手机上运行 3 个不同版本的应用程序?

Should I use the ad-hoc distribution profile for the staging env, and the app store version for prod? I assume with 3 different profiles, I can run 3 different versions of the app on a single phone?

或者,我是否应该只使用 3 个不同的 appId,这样我就可以调试该应用的所有版本,并且只保留该应用的 prod 版本的分发配置文件?

Or, should I just use 3 different appIds so I can debug all versions of the app, and just keep a distribution profile for the prod version of the app?

重新推送通知 - 应用的所有 3 个版本都能够在同一部手机上接收通知吗?

Re push notifications- would all 3 versions of the app be able to receive notifications while on the same phone?

推荐答案

我创建了三个不同版本的应用程序:dev.[App]、qa.[App] 和 [App].每个都需要它自己的配置文件,但它们都使用相同的 App ID.我还需要三个 SSL 证书.

I created three different version of my app: dev.[App], qa.[App] and [App]. Each needs it's own profile, but they all used the same App ID. I also needed three SSL certs.

我的应用程序的每个版本的令牌都不同,因此 APS 将它们视为三个独立的实体.

The token is different for each version of my app, so APS sees them as three separate entities.

这篇关于适用于开发、生产和阶段环境的 ios 推送通知最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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