iOS in-app subscription tutorial with StoreKit 2 and Swift:
Apple有下面四種In-app purchases (IAPs) :
- Consumables
- Non-Consumables
- Auto-renewable subscriptions
- Non-renewing subscriptions
四種IAP說明:
1.Consumables are products that can be purchased once, more than once, and in quantity. Examples of consumables could be “lives” or gems in games, boosts in a dating app to increase visibility, or tips for developers or creators.
2.Non-consumables are products that can only be purchased once and don’t expire. Examples of non-consumables could be unlocking premium features in an app, getting extra brushes in a painting app, or obtaining cosmetic items in a game.
3.Auto-renewable subscriptions are products that can provide ongoing access to content, services, or premium features in an app. Customers are charged on a recurring basis until they cancel or billing issues occur. Examples of auto-renewable subscriptions could include access to a software service or content (like lessons in an education app).
4.Non-renewing subscriptions are products that provide access to content, services, and premium features in an app for a limited time without automatic renewal. This type of subscription requires the user to manually resubscribe to regain access to the service or content. An example of a non-renewing subscription could be a season pass to in-game content.
例子:
- Consumables: 單次消耗性道具(ex: 生命水、補魔法藥水)
- Non-Consumables: 永久消費型裝備(ex: 盔甲、褲子)
- Auto-renewable subscriptions: 月訂閱(ex: 在訂閱期間,打怪經驗+30%)
- Non-renewing subscriptions: 非自動續訂的訂閱(ex: 每一季的特殊關卡進入權限)