Skip to content

Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for Autotrack setting - #794

Merged
jaredmixpanel merged 4 commits into
masterfrom
zihe-deprecate-decide
Aug 16, 2022
Merged

jaredmixpanel merged 4 commits into
masterfrom
zihe-deprecate-decide

Conversation

@zihejia

@zihejia zihejia commented Jul 13, 2022 •

Copy link
Copy Markdown
Contributor

Since this PR, we are deprecating the Automatically collect common mobile events
setting from Mixpanel website in favor of reducing crashes and race conditions when collecting common mobile events.

image

Alternatively, you need to specify a new param trackAutomaticEvents in getInstance as belows:

...
* @param trackAutomaticEvents Whether or not to collect common mobile events
*                             include app sessions, first app opens, app updated, etc.
...
public static MixpanelAPI getInstance(Context context, String token, boolean trackAutomaticEvents)
public static MixpanelAPI getInstance(Context context, String token, boolean optOutTrackingDefault, boolean trackAutomaticEvents)
public static MixpanelAPI getInstance(Context context, String token, boolean optOutTrackingDefault, String instanceName, boolean trackAutomaticEvents)
public static MixpanelAPI getInstance(Context context, String token, JSONObject superProperties, boolean trackAutomaticEvents)
public static MixpanelAPI getInstance(Context context, String token, JSONObject superProperties, String instanceName, boolean trackAutomaticEvents)
public static MixpanelAPI getInstance(Context context, String token, boolean optOutTrackingDefault, JSONObject superProperties, String instanceName, boolean trackAutomaticEvents)

@zihejia zihejia changed the title remove decide api check &make track automatic events a required param remove decide api check & make track automatic events a required param Jul 13, 2022
@zihejia
zihejia force-pushed the zihe-deprecate-decide branch 3 times, most recently from d951590 to 17f7f73 Compare July 13, 2022 20:22
@zihejia zihejia changed the title remove decide api check & make track automatic events a required param Remove decide api check & make track automatic events a required param Jul 13, 2022
@zihejia zihejia changed the title Remove decide api check & make track automatic events a required param Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for this setting Jul 13, 2022
@zihejia
zihejia requested a review from jaredmixpanel July 13, 2022 20:41
@zihejia zihejia changed the title Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for this setting Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for Autotrack setting Jul 13, 2022
@zihejia zihejia changed the title Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for Autotrack setting Add 'trackAutomaticEvents' as a required param in getInstance' and remove Mixpanel server api call for Autotrack setting Jul 13, 2022

@jaredmixpanel jaredmixpanel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zihejia
zihejia force-pushed the zihe-deprecate-decide branch 2 times, most recently from 595f7c6 to fe1ef66 Compare July 13, 2022 23:57
@zihejia
zihejia force-pushed the zihe-deprecate-decide branch from fe1ef66 to 1e7eff0 Compare July 26, 2022 22:23
@zihejia
zihejia force-pushed the zihe-deprecate-decide branch 2 times, most recently from c6667c7 to f01ee41 Compare August 4, 2022 00:36
@zihejia
zihejia force-pushed the zihe-deprecate-decide branch from f01ee41 to 703eb40 Compare August 4, 2022 21:54
@jaredmixpanel
jaredmixpanel merged commit 87eb182 into master Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants