开发者

Provisioning a Limited Edition iOS app

开发者 https://www.devze.com 2023-04-12 04:03 出处:网络
I\'m developing an app that will have two versions: one on the app store, and a limited edition that will be given away in a contest to one winner. My question is, how do I provision an app to give aw

I'm developing an app that will have two versions: one on the app store, and a limited edition that will be given away in a contest to one winner. My question is, how do I provision an app to give away to 开发者_JAVA技巧just one person? I'm guessing I need their UDID, and have to send them an Ad-Hoc distribution provisioning profile; but does this mean I will have to keep sending them new profiles every time it expires?

What would be the best way to do this?

Thanks,

chmod


Ad Hoc distribution certificates expire. Unless you want to give away a time-limited app (the duration of the Ad Hoc provision), the better option might be to gift the app to the winner's iTunes account, which will cost the developer 30%, or to use one of an App store app's 50 free redemption codes.


It depends on how you want to customize it.

If you have their UDID, you can check for it in code like this:

NSString *udid = [[UIDevice currentDevice] uniqueIdentifier];

From there you could simply switch out graphics or functionality based on whether the device matches the UDID or not.

Note: uniqueIdentifier is depreciated as of iOS5. It still works and may still work well into the future, but there is no guarantee of that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号