synchronizeUserData method

  1. @override
Future<bool> synchronizeUserData()
override

Force sending all pending user data to server. Preconditions:

  • Shouldn't be called more than once per 120 seconds.
  • SDK should not be uninitialized. Returns a result indicating wether there are further trips are in queue waiting to be uploaded. true means queue is empty.

Implementation

@override
Future<bool> synchronizeUserData() async {
  final result =
      await methodChannel.invokeMethod<bool>('synchronizeUserData');
  return result ?? false;
}