简体   繁体   English

应用内购买:在Android和iOS之间共享用户应用内购买

[英]In-app purchases: Share user In-App purchases between Android and iOS

I'm planning to add In-App purchases to my Productivity app. 我打算在我的Productivity应用中添加应用内购买。 Enhanced features are purchase products (eg, freemium). 增强功能是购买产品(例如,免费增值)。 I would like to have user access to purchased feature on both Android and iOS, if he has purchased on any one platform. 如果他在任何一个平台上购买,我希望用户可以访问Android和iOS上购买的功能。 Technically I plan to store purchase information on server and have it retrieved whenever user logs-in on either device, and unlock the feature if already purchased. 从技术上讲,我计划在服务器上存储购买信息,并在用户登录任一设备时检索,并在已购买时解锁该功能。

Is this allowed in both iOS and Android? iOS和Android都允许这样做吗?

Apple App Store Review Guidelines on Section 11 have this explained. 第11节的Apple App Store评论指南对此进行了解释。
Points "11.1/11.2" and "11.14" sounds conflicting (or I'm missing something.). 积分“11.1 / 11.2”和“11.14”听起来相互矛盾(或者我遗漏了一些东西。)。

On Android, I do not see this point mentioning in Policies . 在Android上,我在政策中没有看到这一点。

If you had any experiences (wrt sharing purchase info between devices) that I should take care additionally, any suggestions are welcome. 如果您有任何经验(在设备之间共享购买信息),我应该另外注意,欢迎任何建议。

I'd like to add a note about subscriptions. 我想添加一个关于订阅的说明。 Here's the quote from Apple guide: 以下是Apple指南的引用:

Cross-Platform Considerations 跨平台注意事项

Product identifiers are associated with a single app. 产品标识符与单个应用相关联。 Apps that have both an iOS and macOS version have separate products with separate product identifiers on each platform. 同时具有iOS和macOS版本的应用程序具有在每个平台上具有单独产品标识符的单独产品。 You could let users who have a subscription in an iOS app access the content from an macOS app (or vice versa), but implementing that functionality is your responsibility. 您可以让在iOS应用程序中订阅的用户从macOS应用程序访问内容(反之亦然),但实现该功能是您的责任。 You would need some system for identifying users and keeping track of what content they've subscribed to, similar to what you would implement for an app that uses non-renewable subscriptions 您需要一些系统来识别用户并跟踪他们订阅的内容,类似于您为使用不可续订订阅的应用程序实现的内容

Link to Apple docs: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html 链接到Apple文档: https//developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html

Quote from Android docs: 从Android文档引用:

You can also build on your existing external subscriber base from inside your Android apps 您还可以在Android应用内部构建现有的外部用户群

  • If you sell subscriptions on a web site, for example, you can add your own business logic to your Android app to determine whether the user has already purchased a subscription elsewhere, then allow access to your content if so or offer a subscription purchase from Google Play if not. 例如,如果您在网站上销售订阅,则可以将自己的商家逻辑添加到Android应用中,以确定用户是否已在其他地方购买了订阅,然后允许访问您的内容(如果是)或向Google提供订阅服务如果没有,请玩。
  • You can implement your own solution for sharing subscriptions across as many different apps or products as you want ... 您可以实现自己的解决方案,以便根据需要在多个不同的应用或产品中共享订阅...

Link to Android docs: https://developer.android.com/google/play/billing/billing_subscriptions.html 链接到Android文档: https//developer.android.com/google/play/billing/billing_subscriptions.html

At the moment of writing this answer (May 23, 2017) Windows Store doesn't have subscriptions but they were announced during the latest BUILD conference. 在撰写此答案时(2017年5月23日),Windows Store没有订阅,但是在最新的BUILD会议期间宣布了这些订阅。 Some details here and here Subscriptions should be available later this summer. 这里这里的一些细节订阅应该在今年夏天晚些时候提供。

Answering myself. 回答自己。 I submitted to App Store mentioning this case and got it approved. 我向App Store提交了这个案例并获得批准。 I'm yet to submit to Google Play so not sure about it. 我还没有提交给Google Play,所以不确定。

Below the snippet I mentioned in App Store review notes that may help some 我在App Store中提到的片段下面可能对某些人有帮助

If user already purchased premium outside the app(our website or Android app), then we are unlocking Premium as soon as user logs-in to the app on iOS device. 如果用户已经在应用程序(我们的网站或Android应用程序)之外购买了高级版,那么只要用户登录iOS设备上的应用程序,我们就会解锁高级版。 We do not include any button or link or information inside this app regarding purchasing outside. 我们在此应用程序中不包含任何有关外部购买的按钮或链接或信息。 If you have any concern or comments regarding this, please let us know. 如果您对此有任何疑虑或意见,请告诉我们。

Additionally mentioned that our in-app item's service is based on user data at our server and not solely on iOS platform. 另外提到我们的应用程序内项目的服务基于我们服务器上的用户数据,而不仅仅基于iOS平台。 I think this is the key point that makes sense to reuse user's purchase of our service. 我认为这是重用用户购买我们服务的关键点。 However, I do not find this case mentioned clearly in App Store review Guidelines. 但是,我没有在App Store审核指南中清楚地提到这个案例。

[Update for April 2019] [2019年4月更新]

As I've already answer here - from developer Apple guidelines : 正如我已在此处回答的那样 - 来自开发人员Apple指南

3.1.3(b) Multiplatform Services: Apps that operate across multiple platforms may allow users to access content, subscriptions, or features they have acquired elsewhere, including consumable items in multi-platform games, provided those items are also available as in-app purchases within the app. 3.1.3(b)多平台服务:跨多个平台运行的应用程序可允许用户访问他们在其他地方获得的内容,订阅或功能,包括多平台游戏中的消耗品,前提是这些项目也可在应用程序内获得在应用内购买。 You must not directly or indirectly target iOS users to use a purchasing method other than in-app purchase, and your general communications about other purchasing methods must not discourage use of in-app purchase. 您不得直接或间接针对iOS用户使用购买方式以外的购买方式,并且您对其他购买方式的一般通信不得阻止使用应用内购买。

So like @siddharth-gupta explain in his answer : 就像@ siddharth-gupta在他的回答中解释的那样:

Apple's rule basically states that if you have a digital product in your app (in your case, your subscription), the only way to pay for it should be via Apple's in-app purchases. Apple的规则基本上规定,如果您的应用程序中有数字产品(在您的情况下,您的订阅),唯一的支付方式应该是通过Apple的应用程序内购买。 If instead of using in-app purchases, you redirect the user to pay using any other method, your app risks getting rejected. 如果您不是使用应用内购买,而是将用户重定向到使用任何其他方式进行付款,那么您的应用可能会遭到拒绝。

Note: this Apple statement for April 2019 -> and can always change. 注意:此Apple声明为2019年4月 - >并且可以随时更改。 To avoid potential rejection/ban Always verify it with current official Apple Documentation 避免潜在的拒绝/禁止始终使用当前的官方Apple文档进行验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM