Skip to content

Conversation

@nickolas-dimitrakas
Copy link
Contributor

Background

  • The SDK previously used a feature flag enableDirectRouting controlled by server-side remote config to determine whether to use region-specific API endpoints. This change removes the feature flag and makes direct routing the default behavior.

What Has Changed

  • Removed enableDirectRouting property from MPStateMachine
  • Removed remote config parsing for the dur (direct URL routing) key
    SDK now always routes to region-specific endpoints (e.g., nativesdks.us1.mparticle.com instead of nativesdks.mparticle.com)
  • API keys without a region prefix default to us1

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

Reference Issue (For employees only. Ignore if you are an outside contributor)

MIGRATING.md Outdated

### Direct Routing Enabled by Default

The SDK now always uses region-specific API endpoints. Previously, this behavior was controlled by a server-side feature flag (`enableDirectRouting`).
Copy link
Member

Choose a reason for hiding this comment

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

This flag was never set to true, and it's not something we need to publicize given a developer never knew about this server side setting. I'd instead point out that if they have any network security policies, that they'll need to whitelist the new URL that you shared below in What has changed that you share below. I'm not sure about the specifics about iOS, but here's a summary that i plugged into AI to see if there was a comparable thing on IOS since web has such feature.

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.

3 participants