Since our users very much depend on our product for their own business, we want to apply a long grace period to the Cryptlex license server synchronization (say 50 days). This can be set in the license’s details, and when a license can’t be verified for that number of days I already intercept that by comparing to the LA_GRACE_PERIOD_OVER status code, and disable the application from then on (reverting to demo mode actually).
However, I’d also like to warn my users when the grace period is getting out of hand, like by showing a warning prompt from day 30 onwards. This way the inevitable disabling of their license won’t be such a shock once day 50 arrives.
Is this possible with the current LexActivator code? I can’t seem to find a Cryptlex API function to get the number of days since the last server check…
Or maybe I should use the SetLicenseCallback callback function, and in there check for presumably something like LA_E_SERVER being passed, and keep my own “Last server sync date” setting? But this solution seems a bit brittle to me.