在開發中我們會遇到應用內購買的場景,特別是一些虛擬物品的購買,就要用到內購.
一 什么時候需要用到內購?
大家都知道App Store中有很多付費應用,那么如果想通過iOS app來賺錢有哪些途徑呢?
1.app直接下載收費,這類主要是一些游戲/工具類應用.
2.在app中植入廣告 iAd Framework
3.提供內購:應用程序本身虛擬產品等(內購是需要和蘋果進行利潤分成的,一般是蘋果3,開發商7)
內購注意事項
1.購買的商品在本app中使用(例如游戲幣,打賞的道具,app虛擬貨幣等),需要使用內購.否則蘋果會拒絕你上線.
2.內購需要向蘋果申請,并且還會與蘋果有利潤分成.
3.如果只是購買實體商品比如商城的產品,可以直接調用微信支付寶等三方支付,此并不在內購范圍之內.
二 內購產品類型
內購類型歸納
1.非消耗品(Nonconsumable)一旦購買,終身擁有
2.消費品(Consumable),買了就用,用了就沒有了
3.免費訂閱
4.自動續費訂閱
5.非自動續費訂閱
以下是蘋果官方解釋
Consumables
Consumables are In-App Purchases that must be purchased each time the user needs that item. Consumable In-App Purchases are available for both iOS and OS X apps.
? Supplies in a game (ammunition, health points, cheats, extra lives, etc)
? Accelerators used to decrease advancement time within an app
消耗品:用戶每次使用時都需要購買;
? 游戲中的補給品,比如生命值等等;
? 縮短晉級時間的加速器。
Non-Consumables
Non-Consumables are In-App Purchases that only need to be purchased once by the user and are available to all devices registered to a user. This purchase type is used for services that do not expire. Non-Consumable In-App Purchases are available for both iOS and OS X apps.
? Additional levels within a game
? Access to pro-features such as additional camera lenses or audio effects
? Lifetime subscription to a service
? Books and individual magazine issues
非消耗品:用戶只需要購買一次,在任何設備上登錄該賬戶,都可以使用該商品。
? 游戲中額外的關卡;
? 付費功能,比如相機應用中的付費濾鏡等。
Auto-Renewable Subscriptions
Auto-Renewable Subscriptions allow the user to purchase episodic content or access to dynamic digital content for a set duration time. At the end of each duration, the subscription will renew itself, until a user opts out. The Auto-Renewable Subscription In-App Purchase type is available for both iOS and OS X apps.
? Recurring delivery of newspapers or magazine issues
? Monthly subscription to audio or video streaming feed
? Weekly membership to a dating service
? Business app providing cloud storage services
自動訂閱:用戶在特定時間段內可以獲取到指定的內容。并且,在指定時間段即將結束時,自動訂閱。
? 報紙雜志訂閱等。
Free Subscriptions
Free Subscriptions are an extension of Auto-Renewable Subscriptions that permit the delivery of free subscription content to Newsstand-enabled applications. The Free Subscription In-App Purchase type is implemented in the same way as an Auto-Renewable Subscription, just without any charges to the user. Free Subscriptions do not have expirations, but the user can turn off the subscription at any time.
免費自動訂閱:是“自動訂閱”類型的擴展,比起“自動訂閱”,差別在于免費。該類型是不會過期的,除非用戶手動關掉。
Non-Renewing Subscriptions
Non-Renewing Subscription allow the sale of services with a limited duration. Non-Renewing Subscriptions must be used for In-App Purchases that offer time-based access to static content and are only available for both iOS and OS X apps.
? One week subscription to voice guidance feature within a navigation app
? Annual subscription to online catalog of archived video or audio
非自動續訂:需要用戶手動再次購買的,基于時間的商品類型。
? 導航類app中,語音導航功能一周的使用權利等。
內購流程
內購流程簡書上已經有很多文章介紹了,寫的也不錯,如果工作中遇到可以參考:
http://www.lxweimin.com/p/86ac7d3b593a
http://www.lxweimin.com/p/d9d742e82188