问题
I have developed 3 iPad single window applications and my apps were rejected in app store because they belong to an organization. I have been searching solutions for publishing these apps in app store without distributing them through ad-hoc distribution. I came across some solutions like enterprise app development and having a username and password for the app. I decided go with the second option and I am unable to find any solution on how to set up username and password for this single window app, so that I can submit the apps to app store and our organization people can download it whenever they want.
回答1:
Create an entry for the username and password. When the user submits it, you can check the input against PHP or another online method. Save the username and password to the keychain and repeat this each time the app starts.
回答2:
Take a look at iOS Developer Enterprise Program.
Its developer subscription made excetly for in-house app distribution. The registration is very easy. As of now, it costs 299 USD / year.
With Ad-Hoc disribution you are limited to 100 devices and after adding device each device you need to regenerate provisioning profile and repackage the app.
With Enterprise distribution you are not limited anything. The apps can be installed by simple tapping URL on your website or by email.
回答3:
Use Cydia. Too many requirements and delays with App Store!
EDIT:
If you must use App Store then use the KeyChain
Notice that Keychain is the mechanism for authenticating UserName and Password for apps in the App Store.
/*
<codex>
<abstract>Localized strings for GenericKeychain</abstract>
</codex>
*/
"Username" = "Username";
"Password" = "Password";
"Account Number" = "Account Number";
"Show Cleartext" = "Show Cleartext";
"AccountNumberShared" = "The account number is shared between all apps from this developer.";
来源:https://stackoverflow.com/questions/13965308/ipad-in-house-app-distribution-through-app-store