readLicense()
Initialize the SDK license with your license key.
AilaCordovaPlugin.readLicense(license)
Parameters
license(String, required) - Your Aila SDK license key
Returns
Promise that resolves when the license is loaded successfully.
Example
AilaCordovaPlugin.init({ /* config */ })
.then(() => {
return AilaCordovaPlugin.readLicense('your-license-key-here');
})
.then(() => {
console.log('License loaded successfully');
})
.catch((error) => {
console.error('License loading failed:', error);
});
Notes
- Must be called after
init()and before starting scanning - Contact Aila to obtain a license key
- Without a valid license, scanning capabilities may be limited (250 scan limit)
- License validation happens immediately
Related
- setLicenseProfile - Set cloud licensing profile
- getSDKLicenseInfo - Get licensing status