I have a plugin with licensing, which works fine with the timebomb licences. But when I do a fresh install on my developer instance, I get the "Free Trial" licence - by my thinking, in free trial everything should work just like in the paid version.
But here comes my problem, how do I actually determine that the plugin is in the free trial? I use this function to determine if the plugin is licensed:
private Boolean isLicenceOK() {
if (pluginLicenseManager.getLicense().isDefined()) {
PluginLicense pluginLicense = pluginLicenseManager.getLicense().get();
return !pluginLicense.getError().isDefined();
} else {
return false;
}
}Which works fine when I have/dont have a license. But when the plugin is in the free trial, it just says there is no license.
So is there a way to find out if the plugin is currently in the free trial?