One iPhone app with different template based on the URL it was downloaded from

拜拜、爱过 提交于 2020-01-25 05:40:24

问题


I want to give my iPhone app to different distributors for distribution.

When a user will download the app from one of the distributors and open it the app should connect to our servers and ask for the unique settings of this distributer.

The question is, how each app can "tell" from which distributer it was downloaded from?

I don't want to compile a different application for each client.


回答1:


I did some research into this and the only way I found to do it is just to create different targets for each app then share the source code across both the apps, but this still means that you would have to do two submissions still.




回答2:


Do you want an app or iOS WebApp? if you want iOS app, I do not think you can distribute to other distributors, because Apple is the only distributor of iOS applications, so all the downloads come from there.

if you want a WebApp, you create a download link redirected to your webapp to read the link to the server it pulls everything you need, layout, information, etc ...



来源:https://stackoverflow.com/questions/10819943/one-iphone-app-with-different-template-based-on-the-url-it-was-downloaded-from

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