Introducing License Key Validation for the Essential JS 2 Platforms | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (215)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (915)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (147)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (628)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (592)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Introducing the License Key Validation for the Essential JS 2 Platforms

Introducing License Key Validation for the Essential JS 2 Platforms

Hooray! Essential Studio 2022 Volume 1 is here with exciting new features and controls!

In this release, we have introduced license key validation in our Essential JS 2 platforms, namely JavaScript, Angular, React, and Vue. Previously, we didn’t enforce license key validation even though our Essential JS 2 component library is a commercial offering.

This licensing key validation will require developers to register a valid license key in their application when they reference any of the latest JavaScript packages from NPM, CDN, or build setups.

Let’s discuss licensing and how to register a license key in the Syncfusion Essential JS 2 platforms.

What changes will occur?

From this version on, we will prompt you to register a valid license key in your app. Though you can compile and run your app as usual, a popup with a license warning message will appear on top of your app. This warning will appear until a valid license key is registered.

Refer to the following image.

License Validation Warning MessageThis popup message will convey the license validation error and a help link to get a license key and register it in your app.

We have designed the licensing system to be seamless and straightforward. You need to obtain a key and register it at once while starting the app. Syncfusion license key validation can be done offline while executing the app because it doesn’t require internet access.

Will this change affect customers?

Yes, all customers who upgrade to version 20.1 or later will see a license validation warning until a license key is registered in their app code. You will still be able to use the controls as usual.

Note: The license key is different from the build unlock key.

Transition from evaluator to paid customer

Evaluators can use the trial license key to register their apps. It will be valid until the end of the trial period. After the trial period, a license validation message will appear in their apps.

Once you purchase a license, you can obtain new keys from the License & Downloads page. Then, replace the trial license in the key registration section with these to remove the validation message. For more details, refer to the License Key Registration documentation.

How to obtain a license key

You can obtain the license key from the My Account > License & Downloads section of the Syncfusion website. To get a license key, you need an active trial, license, or Community License.

Refer to the following image.

Essential Studio Enterprise Edition- Community LicenseSyncfusion license keys are version and platform-specific. Refer to the how to generate a license key for licensed products knowledge base article to generate the license key for your required version and platform.

How to register a license key

We have to register the Syncfusion license key before initializing any Syncfusion UI controls. The license key registration entry file may vary depending on the Essential JS 2 platform in use.

The following sections cover where to register the license key for each platform.

JavaScript ES6 and TypeScript project

For JavaScript ES6 and TypeScript platforms, you have to register the license in the entry file of the project before using the Syncfusion UI controls.

Refer to the following code.

import { registerLicense } from '@syncfusion/ej2-base';
 
ej.base.registerLicense('License key');

JavaScript project

We suggest adding the license key in the required (.html) file after the Syncfusion JavaScript script reference.

ej.base.registerLicense('License key');

Angular project

In the Angular project setup, register the license key in the main.ts file of the project. Refer to the following code.

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
 
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { registerLicense } from '@syncfusion/ej2-base';
 
// Registering Syncfusion license key.
registerLicense('License key');
 
if (environment.production) {
  enableProdMode();
}
 
platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));

React project

In the React project setup, register the license key in the index.js file.

Refer to the following code.

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { registerLicense } from '@syncfusion/ej2-base';
 
// Registering Syncfusion license key.
registerLicense('License key');
 
ReactDOM.render(
 <React.StrictMode>
   <App />
 </React.StrictMode>,
 document.getElementById('root')
);

Vue project

In the Vue project setup, register the license key in the main.js file.

Refer to the following code.

import { createApp } from 'vue'
import App from './App.vue'
import { registerLicense } from '@syncfusion/ej2-base';
 
// Registering Syncfusion license key.
registerLicense('License key');
createApp(App).mount('#app')

References

Conclusion

Thanks for reading this blog on the newly introduced license key validation in the Syncfusion Essential JS 2 platforms. Follow the instructions in this blog post and leave your feedback and queries in the comments section below.

Also, check out the other marvelous new features and controls in the 2022 Volume 1 release in our release notes and on the What’s New pages.

The new version is available for download from the License and Downloads page for current customers. If you are not yet a Syncfusion customer, you can try our 30-day free trial to check out our newest features.

You can contact us through our support forumssupport portal, or feedback portal. As always, we are happy to assist you!

Related blogs

Tags:

Share this post:

Comments (3)

Hi there, I’m working on a JavaScript ES6 and TypeScript project and have just started looking at your very nice libraries to see if they will meet my project needs. So far so good, but just thought I’d let you know it did take me quite some time to figure out your code example to register the license for a JavaScript ES6 and TypeScript project is incorrect.

There’s no such object loaded “ej.base” or “ej”. Suggest updating the example code to remove “ej.base” from prepended to the registerLicense(‘License key’) function. Cheers!

Hi Daniel,

We have introduced license key validation for Essential JS2 platforms from the 2022 Volume 1 release. This licensing key validation will enforce the developer to register the valid licensing key in an application while referring to any of the latest packages, either from npm or CDN or build. These features are applicable only from the 20.1.47v of packages. For Javascript es6/ typescript project needs to access registerLicense from the import statement ej.base needed for the JS es5 projects only.

Import {registerLicense} from ‘@syncfusion/ej2-base’;

registerLicense(‘licensekey’);

For generating and registering a license key please refer to the following documentation.

TypeScript Documentation:

https://ej2.syncfusion.com/documentation/licensing/license-key-generation/

https://ej2.syncfusion.com/documentation/licensing/license-key-registration/

JavaScript Documentation:

https://ej2.syncfusion.com/javascript/documentation/licensing/license-key-generation/

https://ej2.syncfusion.com/javascript/documentation/licensing/license-key-registration/

https://www.syncfusion.com/blogs/post/introducing-license-key-validation-for-the-essential-js-2-platforms.aspx

We are suggesting you upgrade our packages to the latest version to avail the registerLicense functionalities in your application from the ej base packages.

Regards,
Mydeen S N

Sir i am using commercial license. I do not see any warning on my local development page but i see error when my app is build and deployed on the server

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed