autoSync property

bool? autoSync
final

Immediately upload each recorded location to your configured HttpConfig.url.

Default is true. If you've enabled HTTP feature by configuring an HttpConfig.url, the plugin will attempt to HTTP POST each location to your server as it is recorded. If you set HttpConfig.autoSync, it's up to you to manually execute the BackgroundGeolocation.sync method to initiate the HTTP POST.

Note: The plugin will continue to persist every recorded location in the SQLite database until you execute BackgroundGeolocation.sync.

See also:

Implementation

final bool? autoSync;