Skip to content

Temporary file is not generated #122

@arlyxiao

Description

@arlyxiao

The issue can be reopen
#121

Debug with the function RunningUpdate
https://github.com/segmentio/Analytics-CSharp/blob/main/Analytics-CSharp/Segment/Analytics/Plugins/StartupQueue.cs#L47

Here are the test steps:

  1. Close the network. Clear all previous test data with full clean test steps.
  2. Initialize segment with default config offline. Only use the write key as parameter for the segment constructor function.
  3. Wait for a few seconds, I can see the state.running is true from the function RunningUpdate, https://github.com/segmentio/Analytics-CSharp/blob/main/Analytics-CSharp/Segment/Analytics/Plugins/StartupQueue.cs#L47
  4. Then I call track event and wait for a few minutes without closing the app. Keep the app running.
  5. The temporary file is still not generated.

In conclusion, if the segment instance is initialized offline, even state.running = true, it will not generate the temporary file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions