在开发中我们会遇到应用内购买的场景,特别是一些虚拟物品的购买,就要用到内购.
一 什么时候需要用到内购?
大家都知道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.jianshu.com/p/86ac7d3b593a
http://www.jianshu.com/p/d9d742e82188