mixpanel / mixpanel-swift

Official iOS (Swift) Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
434 stars 234 forks source link

checking for mix-panel initialization #401

Closed AmrAbedal closed 3 years ago

AmrAbedal commented 4 years ago

instead of crashing the app in case that mixpanel not initialized , give us the ability to check if the main instance is already initialized .

TimPapler commented 4 years ago

hello, or maybe just use an operation queue on which all calls to Mixpanel instance are queued (except the initialization call of course) and is resumed when initialization is completed so they get executed after initialization.

zihejia commented 3 years ago

hi @AmrAbedal , sorry for the late response. Are you talking about the assertion that crashes the app? The intention of the assertion is to catch the issue early during the development phase and it won't crash in production. If you have a more specific use case, you are welcome to provide more information. Otherwise, I will close the issue for now.