Closed karolkulesza closed 10 months ago
Steps to reproduce:
posthog-ios
v.2.0.0
ViewController
testPostHogReset()
viewDidLoad
apiKey
setupPostHog
var client: PHGPostHog? func testPostHogReset() { setupPostHog() identifyAndGroup() DispatchQueue.main.asyncAfter(deadline: .now() + 1) { self.client?.reset() DispatchQueue.main.asyncAfter(deadline: .now() + 1) { self.identifyAndGroup() } } } func setupPostHog() { let apiKey = "..." let hostString = "https://eu.posthog.com" let configuration = PHGPostHogConfiguration(apiKey: apiKey, host: hostString) configuration.captureApplicationLifecycleEvents = true PHGPostHog.setup(with: configuration) client = PHGPostHog.shared() } func identifyAndGroup() { client?.identify("test_user") client?.group("project", groupKey: "Test Project") }
Hello! Thanks for the heads up. Looking into this
Thanks @EDsCODE , I can see that the fix for this issue was already merged to master. Do you know when it'll be available via SPM ?
master
Already fixed
Steps to reproduce:
posthog-ios
libv.2.0.0
ViewController
and invoketestPostHogReset()
method inViewController
'sviewDidLoad
method (updating the value ofapiKey
insetupPostHog
method)