GetActivationMetadata - Unkown error

I have created a meta-data field for my product and license using the dash-board and now want to retrieve the respective value using

this.product.featureA = LexActivator.GetActivationMetadata("featureA");

However, the underlying function
const status = LexActivatorNative.GetActivationMetadata(key, array, array.length);
returns 1 and the error is “Unknown Error”

What do I have to do to retrieve the meta-data?



1 (LA_FAIL) means that the license has not been activated.

If I check the licenses it say its genuinely activated - the error must be something different…

You should be calling GetLicenseMetadata(“featureA”) function.

I got it to work. It was indeed a license-activation problem. Sorry for my confusion!