Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix First App Open not always being able to be triggered #496

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

zihejia
Copy link
Contributor

@zihejia zihejia commented Jan 10, 2022

  • Fix First App Open not always being able to be triggered
  • Add additional param trackAutomaticEvents in initialize: Whether or not to collect common mobile events

@@ -214,7 +214,7 @@ open class MixpanelInstance: CustomDebugStringConvertible, FlushDelegate, AEDele
#endif // DECIDE

#if !os(OSX) && !os(watchOS)
init(apiToken: String?, flushInterval: Double, name: String, optOutTrackingByDefault: Bool = false) {
init(apiToken: String?, flushInterval: Double, name: String, optOutTrackingByDefault: Bool = false, trackAutomaticEvents: Bool = false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

default is false here? but true in Mixpanel.swift?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be true, good catch

Copy link
Contributor

@jaredmixpanel jaredmixpanel left a comment

Choose a reason for hiding this comment

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

lgtm, with just one question.

@zihejia zihejia merged commit 93c4857 into master Jan 10, 2022
@zihejia zihejia added the bug label Jan 12, 2022
@zihejia zihejia changed the title fix First App Open not always being able to be triggered Fix First App Open not always being able to be triggered Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants