How to get number of days remains of license

Hello,


Is there a way I can get number of days until license expires? Like we can get for trial days?

Info is already there when we create the product key on server (in number of days) but I can’t find way to fetch that info like we can get custom fields information.

Please help as soon as possible so we can move on.

Mahesh.

Hi Mahesh,

Currently, their is no public function present for the same, though a private function exists. The only way to know if license is expired is when it actually expires.

The required function will be added to the public API if you need it.

Hello,


Thanks for the feedback. I think having such function in public API will be very useful to many people like those shows license expires after days. In our case we does it.

I am using C# sdk and I don’t see any private function in .cs files for the same. For now alternative for us is we can make use of custom fields with days in that but problem is that we need first InstallDate (can i get it ?) of license on that system. 

I would say to add function public API so all scenarios will be covered. We have already purchased subscription and so far working very well and it will be helpful if it is handled in SDK itself.

Mahesh.

It will be added in the next release to the SDK itself. You can expect next release by 15th March.
You can use custom fields to implement the same. At the time of key generation using the web api or dashboard set a custom field with the timestamp, which you can access in your app.
Please note license validity is not counted from install (activation)date. It starts from the day the key was generated. Suppose if a key is generated with the license validity of 1 year it will expire after 1 year even if it was unused.

Also please note that next release will also have another API function GetExtraActivationData () which can be used to fetch data, set using SetExtraActivationData () using which you can get the installation date too, if that is set in the extra data at the time of activation.

Thanks for very clear explanation. In that case I will wait for March 15th instead of doing custom manipulation. 


Right now API does have SetExtraActivationData() so you mean with March 15th we will have GetExtraActivationData() to access stored data? But I think a better feature would be to set extra activation data in key value pair so if i want to set multiple values I won’t have to append and parse them. Right now we are setting system name and uesrname in extra data using ; so in case if we need to get it back, we will have to parse it. You can recommend to development team.


Hi,

Adding a key value support to SetExtraActivationData () will be a breaking change which will affect all our users. We can’t do that. So, you will have to parse the data yourself using any separator.

Agree with that as that’s for sure breaking feature. Instead I would say to add new Methods for that in future so all will be good :slight_smile:

Just wanted to check if new windows C# SDK is released or not as mentioned earlier of 15th March?

The release has been delayed. The new SDK will be available by 21st March. In case it is urgent, and may affect your product release cycle please reply to this message.