You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Creating and deallocating the Analytics instances doesn't stop them from sending events to the back-end sources.
To Reproduce
Steps to reproduce the behavior:
Allocate Analytics instance (1) with support for lifecycle events and connected to the Segment source.
Background the app and watch for application lifecycle event to appear in Segment debugger.
Deallocate analytics instance (1) and allocate Analytics instance (2) with support for lifecycle events and connected to the same Segment source.
Background the app and watch for duplicate application lifecycle events to appear in Segment debugger.
Goto 3. for more fun and more events!
Expected behavior
The Analytics instance should clean up after itself and shutdown its plugins when deallocated. To be clear, I'm not expecting two valid instances to coordinate in any way - that would reasonably produce duplicates, but if there is only one app-wide, live instance that hasn't been released, it should be the only one sending events.
Screenshots
Platform (please complete the following information):
iOS library version 1.3.0
Additional context
My use case requires my app be able to reconfigure Segment between logins so that I can attach to QA and production depending on the user's preference.
The text was updated successfully, but these errors were encountered:
If it matters, it is possible to work around this issue by explicitly de-initializing elements of the segment client using their public APIs for the internal objects. Although that allowed me to make progress, I'd expect any commercial library to clean up after itself correctly which is why I opened this issue. That feels like a reasonable prerequisite.
Describe the bug
Creating and deallocating the Analytics instances doesn't stop them from sending events to the back-end sources.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Analytics instance should clean up after itself and shutdown its plugins when deallocated. To be clear, I'm not expecting two valid instances to coordinate in any way - that would reasonably produce duplicates, but if there is only one app-wide, live instance that hasn't been released, it should be the only one sending events.
Screenshots

Platform (please complete the following information):
Additional context
My use case requires my app be able to reconfigure Segment between logins so that I can attach to QA and production depending on the user's preference.
The text was updated successfully, but these errors were encountered: