Skip to main content

Aila_GetSDKLicensingInfo

Returns current licensing info of SDK as JSON string.

Signature

NSString* Aila_GetSDKLicensingInfo(void);

Returns

A JSON-encoded snapshot of the SDK's current licensing state, or nil on error.

Description

Returns a JSON‐encoded snapshot of the SDK's current licensing state. All dates in the JSON are formatted as ISO-8601 UTC strings.

The currentConfiguration field will read "SoftScan" for any SDK that has not been able to connect to Aila hardware for 24 hours.

Example Return Value

{
"expirationOverride": "2025-08-16T04:00:00Z",
"currentConfiguration": "Kiosk",
"versionNumber": "20250721.2",
"profileID": "com_aila_demo_profile",
"SoftScan": {
"parsing_dl": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"standard_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"advanced_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"parsing_gs1": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"mrz_scanning": {"enabled": true, "expires": "2025-01-20T17:21:44Z"}
},
"Kiosk": {
"parsing_dl": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"standard_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"advanced_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"parsing_gs1": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"mrz_scanning": {"enabled": true, "expires": "2025-01-20T17:21:44Z"}
}
}

Usage

NSString *licensingInfo = Aila_GetSDKLicensingInfo();
if (licensingInfo) {
NSData *data = [licensingInfo dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data
options:0
error:nil];
NSLog(@"Licensing Info: %@", json);
}

See Also