Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on ensuring flush completes when called before background / termination #1026

Open
james-ff opened this issue Jan 24, 2022 · 1 comment

Comments

@james-ff
Copy link

Hello,

My team are looking at increasing the flush limit for events sent up to segment. We also want to ensure that, on app background and close, all events are flushed regardless of limit.

We've explored this option described by Apple to ensure that flush commands have enough time to execute:
https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background/extending_your_app_s_background_execution_time

With this approach:

  • Is the flush command synchronous?
  • Would there be a problem with wrapping .flush command in this closure setup?
  • Is Segment handling this concern already such that we do not need to provide this wrapper?

Many Thanks,

James

@james-ff
Copy link
Author

not urgent, but any info would be appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant