ios push notifications best practices for dev, prod and stage environments

故事扮演 提交于 2020-01-25 05:35:05

问题


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).

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?

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?

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


回答1:


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.


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



来源:https://stackoverflow.com/questions/10792134/ios-push-notifications-best-practices-for-dev-prod-and-stage-environments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!