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

add serverURL to init params and fix Android module #160

Merged
merged 8 commits into from
Sep 14, 2022
Merged

Conversation

jaredmixpanel
Copy link
Collaborator

No description provided.

JSONObject mixpanelProperties = ReactNativeHelper.reactToJSON(metadata);
AutomaticProperties.setAutomaticProperties(mixpanelProperties);
MixpanelAPI.getInstance(this.mReactContext, token, optOutTrackingDefault, mixpanelProperties, null, trackAutomaticEvents);
MixpanelAPI instance = MixpanelAPI.getInstance(this.mReactContext, token, optOutTrackingDefault, mixpanelProperties, null, trackAutomaticEvents);
instance.setServerURL(serverURL);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mixpanel-android doesn't have a serverURL init param

Copy link
Contributor

Choose a reason for hiding this comment

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

it should be fine. will just work

Copy link
Contributor

@zihejia zihejia left a comment

Choose a reason for hiding this comment

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

LGTM

@zihejia zihejia merged commit 8a51d98 into master Sep 14, 2022
@jaredmixpanel jaredmixpanel added the enhancement New feature or request label Sep 14, 2022
@jaredmixpanel jaredmixpanel changed the title add serverURL to init params add serverURL to init params and fix Android module Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants