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

Support custom host name for SegmentIntegration #739

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

prayansh
Copy link
Contributor

@prayansh prayansh commented Dec 8, 2020

In our efforts to support data residency, these changes allow our SDK to retrieve a custom apiHost name from settings and also provides a new builder option to provide a defaultApiHost().

The host name can be configured via app.segment.com under the individual source's settings.
If the SDK were to fail while fetching settings from the internet, we use the defaultApiHost property for configuration

Usage

Analytics.Builder(this, ANALYTICS_WRITE_KEY)
             .defaultApiHost("api.segment.io/v1")

@prayansh prayansh merged commit 72b84d6 into master Dec 8, 2020
@prayansh prayansh deleted the pray/custom-api-host branch December 8, 2020 23:14
This was referenced Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants