I'd like to determine which version of my Android app a user originally purchased from the Google Play Store. I need this info to help support moving from a paid app model to a freemium model.
In iOS7 onwards, you can do this by using [NSBundle appStoreReceiptURL]
which returns a URL of the App Store receipt that can be examined.
Is there an equivalent in the Google APIs?
Getting Time and Date Install
You can get the time and date of the first install of the app by using
And the version with
Unfortunately this date will reset whenever the app is uninstalled and reinstalled.
If you go with
you will also find out the date when an application was installed, but the time returned will change every time the package is updated.
Suggested Solution
A solution could be an online database for your application, where you can store each
user's ID
using AccountPicker, theirfirst-time-install
with the methods described above and use them at login. You can also use the App Licensing Service.http://developer.android.com/reference/android/content/pm/PackageInfo.html#firstInstallTime