Using Statsig.addListener should give the ability for the listener to receive lifecycle events, including the onInitialized(_:) event. Currently, when the addListener(_:) call is made before the start call is, adding the listener fails silently.
I would like to be able to call addListener(_:) long before the start call in order to receive these events, but that doesn't seem possible right now. Is this something you'd be willing to consider adding?
Using
Statsig.addListener
should give the ability for the listener to receive lifecycle events, including theonInitialized(_:)
event. Currently, when theaddListener(_:)
call is made before thestart
call is, adding the listener fails silently.https://github.com/statsig-io/ios-sdk/blob/24875a949c4e1ac25917b5d4fc95c11ca37eadbc/Sources/Statsig/Statsig.swift#L43-L46
I would like to be able to call
addListener(_:)
long before thestart
call in order to receive these events, but that doesn't seem possible right now. Is this something you'd be willing to consider adding?Thanks!