getSDKLicenseInfo()
Returns a JSON-encoded snapshot of the SDK's current licensing state.
AilaCordovaPlugin.getSDKLicenseInfo()
Returns
Promise that resolves with an object:
{
success: boolean,
licenseInfo: string // JSON-encoded licensing information
}
Example
AilaCordovaPlugin.getSDKLicenseInfo()
.then((result) => {
if (result.success) {
const licenseData = JSON.parse(result.licenseInfo);
console.log('License Info:', licenseData);
console.log('Licensed features:', licenseData.features);
console.log('Expiration:', licenseData.expiration);
}
})
.catch((error) => {
console.error('Failed to get license info:', error);
});
Notes
- Useful for debugging licensing issues
- Returns details about licensed features and restrictions
- Can be used to verify license status before critical operations
Related
- readLicense - Load license key
- setLicenseProfile - Set cloud licensing profile