Closed lorenc-tomasz closed 4 months ago
It's a bigger question. When the user disable tracking, does this mean from now on, or all past and from now on. And what's past ? Just local, non-sent, or even the ones on backend ?
I can't answer it, I just have the power to merge pull requests.
Hi, each time
setOptOut
method is invoked the dispatcher queue is cleared.When app has switch that enable / disable event tracking we can loose events history. Example scenario:
setOptOut
is invoked. Dispatcher is cleared.setOptOut
is invoked. Dispatcher is cleared.setOptOut
is invoked. Dispatcher is cleared.setOptOut
is invoked. Dispatcher is cleared.In that case user still allows tracking but we lost all collected events.
I think it should work this way:
setOptOut
is invoked. Events collecting is disabled. Next event will not be collected.setOptOut
is invoked. Events collecting is enabled. Next event will be collected.setOptOut
is invoked. Events collecting is disabled. Next event will not be collected.setOptOut
is invoked. Events collecting is enabled. Next event will be collected.I think this is the way iOS SDK works at the moment.