Affected: Mobile SDK
Overview
BrowserStack is a web and mobile testing tool that can be used to test applications that use our Mobile SDKs. BrowserStack uses a man-in-the-middle (MITM) proxy, and this MITM proxy doesn't support server-sent events (SSE).
By default, LaunchDarkly mobile SDKs use streaming, which utilizes an SSE connection. Several issues can arise from this, such as initialization timeouts or the SDK returning the default flag value during evaluation. This is because the MITM proxy used by BrowserStack isn't compatible with the SSE protocol that our SDK uses for streaming flag updates.
Solution
Enable polling mode for the SDK when testing in BrowserStack. This is done by adjusting the configuration options when initializing the SDK.
-
- Documentation for .NET - configuring streaming.
- Documentation for Android - configuring streaming.
- Documentation for Flutter SDK - configuring streaming.
- Documentation for iOS - configuring streaming.
- Documentation for React Native SDK - configuring streaming.