简体   繁体   中英

Migrating paid app to In App Purchase on Google Play

There are a lot of old questions and answers from many, many years back about the topic of migrating an existing paid app to a freemium model using in app purchases, but they all just state the same limited workarounds.

So is there an official way to do this in 2019? Or at least a method that avoids the usual pitfalls, like

Negative impact on user experience

  • asking existing (paid) users to purchase a $0 IAP
  • asking existing (paid) users to purchase an IAP using a promo code

Will eventually fail when the user buys a new device

  • keep track of which devices had the paid app installed either by sending a device identifier to a server or by storing a flag in SharedPreferences

There are other equally flawed methods as well which aren't even worth mentioning. The correct and easy fix would of course be a simple API call to Google Play Services:

bool legacyPremiumUser = didUserEverPurchaseThisApp();

Does anything like this exist today? Even just a way to identify a user across devices would be acceptable.

Since there has been no answer for over a year, I might as well post my own.

I ended up doing some kind of mishmash of

  • detecting settings that were only available in the paid app
  • letting the user sign in with their Google account in the old paid version, before migrating to subscriptions. They can then restore their "legacy premium status" (ie bypass subscriptions) by signing in with the same Google account in the new subscription based version.
  • letting users who didn't sign in with their Google account in the old paid version verify their Google Play order number (which I've downloaded and compiled into a database on a server, where they can be checked by a HTTP call).

If all else fails, they can contact me manually by email or an in-app feedback form and I'll try to find their purchase in Google Play order management and/or just take their word for it and unlock legacy premium for their Google account manually.

It's far from perfect, but it beats asking legacy customers to pay again.. and again, and again...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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