To handle subscriptions, make a regular online check daily or even on each program start
When using regular license checks, you would deliver a version which does not expire (perpetual license). An online check is either done per day, per week, per month or per program start. If the user cancels the subscription you would lock the license on the Activation Server 4. The next online check would then lock the license on the local computer. If the user wants to continue with the subscription, just remove the license lock on the Activation Server 4.
Code implementation
• | Activate regular online checks with 1 day and grace period 0 days or 1 day |
• | If the subscription expires lock the license on the Activation Server 4 |
• | Screen License is locked allows to reactivate once the lock is removed on the Activation Server 4 |
To implement a check per program start
• | Activate regular online checks with 1 day and set the parameter ForceCheck=true in the command checkModuleSubscription. Set grace period 0 days or 1 day |
• | If the subscription expires lock the license on the Activation Server 4 |