segmentio / analytics-ios

The hassle-free way to integrate analytics into any iOS application.
https://segment.com/libraries/ios
MIT License
402 stars 334 forks source link

Question on limiting/preventing flushes on expensive networks #1064

Closed rachel-foreflight closed 2 months ago

rachel-foreflight commented 2 months ago

What would be the best way to prevent segment from actually sending/flushing when connected to an expensive network (ie satellite wifi). Right now we are using a custom flush policy - but is there a better/recommended way to accomplish this?