问题
I'd like be able to make a time-limited trial version of my application, but I'm not sure how I can reliably determine whether or not the user attempted to reinstall the application after the expiration date.
I could likely store the initial installation date in a storage location that wouldn't get erased upon uninstall, but this doesn't seem like an ideal method. Does Google Play's Application Licensing support this feature, or is there another acceptable way to accomplish this?
回答1:
To echo what was written in the comments:
Have the device create a UUID, then send the UUID to a server like was mentioned. Every time the app is used or every couple days, which ever is more, check if the app trial has expired and should be disabled IN the Licensing Services policy. That way you can have the licensing service disable the application for you.
来源:https://stackoverflow.com/questions/10865365/how-can-i-make-a-time-limited-trial-application