Hello. I added in the custom license field
time limit (1 hour) called "1hTest" I created a new key, then I activate the application and after restarting the application there is a problem with checking how much time is left until the application is deactivated. The application immediately informs that the subscription has expired and it is not yet an hour since creating a key.
Here is an example of Delphi code:
if isGenuine then
begin
// read in a custom license field named "update_expires"
featureValue := ta.GetFeatureValue('1hTest', '');
// if the date has passed then kill the app immediately
if (featureValue = '') Or (not ta.IsDateValid(featureValue, TA_HAS_NOT_EXPIRED)) then begin
ShowMessage('Your subscription has expired. Buy a renewal.');
// Exit the app, and exit the function immediately
// Application.Terminate;
// exit;
end
else
ShowMessage('1h Activation');
end;
If you only check the name of a custom license field:
if (featureValue = '') then begin
ShowMessage('Your subscription has expired. Buy a renewal.');
// Exit the app, and exit the function immediately
// Application.Terminate;
// exit;
end
else
ShowMessage('1h Activation');
Then everything works as it should.
What am I doing wrong?
Thanks greetings