mixpanel / mixpanel-iphone

Official iOS (Objective-C) Tracking Library for Mixpanel Analytics
http://mixpanel.com
Apache License 2.0
1.05k stars 567 forks source link

How to dynamically enable/disable the sdk? #1015

Closed RNG-Tank closed 1 year ago

RNG-Tank commented 1 year ago

Hi guys, we are using iOS and Android SDK, and we hope to dynamically enable or disable the SDK when the app is running. Is there any API? If not, are there any plans for support it in the future?

jaredmixpanel commented 1 year ago

@RNG-Tank you could use the optInTracking and optOutTracking methods or create your own wrapper class to add an enabled check before calling the actual SDK methods. There are no plans to add such functionality.