setGreatNetworkDataFlushInterval

fun setGreatNetworkDataFlushInterval(greatNetworkIntervalSeconds: Int): BrazeConfig.Builder

Sets the data flush interval on great connections. On android.os.Build.VERSION_CODES.N and below, this for example is 4G or Wifi. Otherwise, this is defined as roaming data connections or connections where the max network link upstream/downstream bandwidth is above 14 Mbps.

Defaults to 10 seconds.

To disable automatic flushing in this network condition, simply set the value to -1. To turn off all automatic data flushing, set all three network intervals to -1. When automatic flushing is disabled, you can use IBraze.requestImmediateDataFlush to manually flush analytics data to the server. Note, however, that any refreshes of the news feed, or in-app message will automatically flush your analytics data as well.

Parameters

greatNetworkIntervalSeconds

the data flush interval in seconds