-
Notifications
You must be signed in to change notification settings - Fork 105
Description
Is your feature request related to a problem? Please describe.
Some of our users have expensive internet connections. They don't want to pay for sending Segment events while only that expensive internet is available.
Describe the solution you'd like
What I'd like is a dynamic means (e.g., a Swift closure) that can be called near here to determine whether or not to flush analytics events. This could be setup in the Configuration
.
Right now, there is a general purpose enabled
flag, but if that is false
, as far as I understand it, that will also disable events from being persisted.
What we want is a means to specifically disable flushing, but still have new events persisted.
Describe alternatives you've considered
We are planning to setup our own change (just locally, on top of your SDK) using a long flushInterval
to effectively disable only flushing.
Additional context
This is for an aviation related app.