getApplicationIdFromToken static method

String getApplicationIdFromToken(
  1. String token
)

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:

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'];
}