setGoodNetworkDataFlushInterval

fun setGoodNetworkDataFlushInterval(goodNetworkIntervalSeconds: Int): BrazeConfig.Builder

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

Defaults to 30 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

goodNetworkIntervalSeconds

the data flush interval in seconds