removeDifferentAppKeysFromQueue static method

Future<String?> removeDifferentAppKeysFromQueue()

Removes all requests with a different app key in request queue. In request queue, if there are any request whose app key is different than the current app key, these requests will be removed from request queue.

Implementation

static Future<String?> removeDifferentAppKeysFromQueue() async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "removeDifferentAppKeysFromQueue"';
    log('removeDifferentAppKeysFromQueue, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "removeDifferentAppKeysFromQueue"');
  final String? result = await _channel.invokeMethod('removeDifferentAppKeysFromQueue');

  return result;
}