attemptToSendStoredRequests method

Future<void> attemptToSendStoredRequests()

Attempt to send all stored requests to the server.

Implementation

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