Flushing Events Periodically
Detailed steps to flush events periodically from the RudderStack SDK’s internal database to Rudder Server.
implementation 'androidx.work:work-runtime:2.7.1'rudderClient = RudderClient.getInstance(
this,
<WRITE_KEY>,
RudderConfig.Builder()
.withDataPlaneUrl(<DATA_PLANE_URL>)
// enabling periodical flush of events in the DB with a repeat interval of 15 minutes
.withFlushPeriodically(15, TimeUnit.MINUTES)
.build()
)withFlushPeriodically parameters
withFlushPeriodically parametersInitializing WorkManager on demand
Contact us
Last updated
Was this helpful?