问题
I am asked by a client to build an iPhone app which works as follow:
User download the App for free from iTunes
User enter their email address when they first launch the app
They will be emailed activation key
User launch app and then enter this activation key to start using the App.
User do not have to pay for this activation key as the only purpose of this is that only employees of my client company can get the activation code and use it. So when they enter their email address activation key will only be sent if email address is from the same company.
I know I can use enterprise license to distribute app internally but it is not possible due to various reasons.
We do not want to their activation key every time so this will be stored in their settings.
Second questions is that if I want to force them to enter their activation key every month then does this violate apple guidelines.
I want to ask that if I build app as explained above then will it be rejected?
回答1:
This will be rejected. See guideline 17.2 here:
https://developer.apple.com/app-store/review/guidelines/
回答2:
simply create a session for 30 days, and expire that session in 30 days... Apple have no issues in expired session plenty of my apps are live with it... Just give a message you need to login to access the application features or something like that when user get logged out due to session expiration. Kudos
回答3:
This can be done if the client creates an enterprise app. With the enterprise app the app will have to be downloaded from the client's account and is not subject to Apple's restrictions above.
来源:https://stackoverflow.com/questions/8508850/iphone-app-with-activation-key