Hello,
I’m trying to integrate LexActivator into my application. When following the examples, they call SetLicenseCallback, then call IsLicenseGenuine to check if the current license is activated/expired/etc.
I find, if I change anything through the dashboard, the first call to IsLicenseGenuine will not return updated info. It’s only until the callback returns the first time after IsLicenseGenuine is called can I get the up to date info.
For example, a license is activated that will expire in 180 days. The app is closed.
In the dashboard I extend the license to 360 days.
I relaunch the app and the first call to IsLicenseGenuine still reports expiry in 180 days.
First callback executes.
Now IsLicenseGenuine will report the correct, updated, 360 days.
This is also an issue if I were to deactivate an activation in the dashboard. IsLicenseGenuine will report everything is fine (license activated) and then the callback will run only then correctly reporting the license was deactivated.
Is there any way to force a sync with the server before calling IsLicenseGenuine? I’d rather not do something weird like, call it, wait for the callback, then call it again to get the real info.
Thanks.