Leave analytics client running on sign out.

Only identify with a running session.
This commit is contained in:
Doug
2021-12-13 17:30:38 +00:00
parent 3332203788
commit 56883906d8
4 changed files with 56 additions and 28 deletions
@@ -40,8 +40,11 @@ class PostHogAnalyticsClient: AnalyticsClientProtocol {
}
func reset() {
postHog?.disable()
postHog?.reset()
}
func stop() {
postHog?.disable()
// As of PostHog 1.4.4, setting the client to nil here doesn't release
// it. Keep it around to avoid having multiple instances if the user re-enables