setBadNetworkDataFlushInterval

fun setBadNetworkDataFlushInterval(badNetworkIntervalSeconds: Int): BrazeConfig.Builder

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

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

badNetworkIntervalSeconds

the data flush interval in seconds