Idea
Trial activation allows you to pre-generate time-limited licenses so that the time-limit starts from the first day of activation. This is especially useful when you don’t know in advance when the license key will be used for the first time.Getting started
By default, a newly generated license key does not have this option enabled. In order to enable it,- Go to https://app.cryptolens.io/Product
- Select the product you want to use.
- Click Create new key
- Tick start countdown upon activation
- Set the Maximum number of machines to 1. (note, this value can be anything greater than zero for this feature to work)
- Click Create.
Remarks
Please read these through before you start using feature in production.Maximum number of machines greater than 1
Update from 2021-07-26: It is now possible to configure it so that the license is extended only when the first device activates, independent of the value of Maximum number of machines. To do that, you need to create a data object (inside the product) with the name “cryptolens_trialactivation” and string value “first_activation”.
cryptolens_trialactivation and setting its string value to one of the following options, depending on the desired behaviour of the method.
- Default behaviour = expiry date will be extended until the limit of the maximum number of machines is reached. For example, let’s say you set the maximum number of machines to 2 and the time to 30 (this value is referred to as the period on the product page). When the first machine activates the licence, the expiry date will be extended so that the licence can be used for 30 days. After those 30 days have passed, the second machine activates the licence, which will extend the expiry date by another 30 days. The original machine will still be able to use the licence.
- first_activation = This will extend the expiry date only for the first activation. Subsequent activations will not extend the date. Please note that if all machines are deactivated and the licence is activated again, the expiry date will be extended once more for the first activation.
- disable_on_first_activation = This behaves the same way as first_activation, except that the feature which starts the countdown upon activation is disabled at the licence level after the first activation. In practice, this means that the expiry date will be extended only once.
- disable_on_first_activation_v2 = Similar to disable_on_first_activation, the feature that starts the countdown upon activation will be disabled at the licence level. However, it will otherwise behave in the same way as the default behaviour for that request, meaning that if a new machine is activated, the expiry date will be extended.