getApplicationIdFromToken static method
Get the application id from an application token.
Use it to obtain the application id required by the offline activation / deactivation methods.
Parameters
token: The application token.
Returns
- String: The application id, or empty if the token cannot be parsed or has no application id.
API error codes:
- GemError.invalidInput: The token cannot be parsed or has no application id.
See also:
- applicationId - Get the application id of the token currently set.
Implementation
static String getApplicationIdFromToken(String token) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getApplicationIdFromToken',
args: token,
);
return resultString['result'];
}