Our app is nearing a new major release, and we’d like to give everyone who once trialed our app but didn’t buy the opportunity to test it out again.
We can delete all sufficiently old expired trial records on the Cryptlex side to allow these users to start a new trial. However, how can we test in our app if an expired trial has no counterpart record on the Cryptlex servers anymore? We don’t want to show a “Start a new trial for this major version” button in our app when that user has no rights to a new trial.
I tried deleting my own trial record, and IsTrialGenuine afterwards (understandably) returned the cached status (‘you have a trial’). But it also does so after two restarts and thus after a LexActivator background thread server sync.
I also can’t call ActivateTrial for testing purposes, since that will auto-start a new trial on the spot if the record is indeed gone.
One (untested) way I can think of is to call GetTrialId, pass the ID along to a script on our own servers, and let that script use the Cryptlex API to see if a record with that ID is still present. But I hope there is a less convoluted way of doing this?