I am thinking of having a way in my app to offer free unlock codes for valuable users, meaning that they won't have to purchase the app to have full access to it.
Looking into it there are a few ways:
- Google Play Promo Codes: initially this sounded good but their terms are a bit constraining, for instance:
You agree to distribute Promotional Codes only to users located in countries where your Products, in-app item in your Products, or content related thereto, are permitted.
What if I want to reward a user from a country where I don't sell my apps to?
I could generate an unlock code for the user's email... but this rises a bit of privacy issues
I could have the user tell me some code from the app, and then for that code, generate an unlock code... I was thinking of maybe ANDROID_ID. Not sure what security issues may bring the read of ANDROID_ID as for instance the Advertiser id has. Another way could be generating a unique code on app install and use that.
Use something like Firebase Database and then store a bunch of codes there and check if the code entered in the app is available in the server.
I am waiting for your thoughts on how to implement this for android.