diff --git a/packages/expo-dev-launcher/CHANGELOG.md b/packages/expo-dev-launcher/CHANGELOG.md index c85416da6de801..1d0f9b62c7d03f 100644 --- a/packages/expo-dev-launcher/CHANGELOG.md +++ b/packages/expo-dev-launcher/CHANGELOG.md @@ -8,6 +8,8 @@ ### 🐛 Bug fixes +- [iOS] Fixed network inspector losing events when the dev-server listening on port other than 8081. ([#23122](https://github.com/expo/expo/pull/23122) by [@kudo](https://github.com/kudo)) + ### 💡 Others ## 2.4.3 — 2023-06-27 diff --git a/packages/expo-dev-launcher/ios/DevLauncherNetworkInterceptor.swift b/packages/expo-dev-launcher/ios/DevLauncherNetworkInterceptor.swift index 11f1ea64f10664..c41f53d49827e1 100644 --- a/packages/expo-dev-launcher/ios/DevLauncherNetworkInterceptor.swift +++ b/packages/expo-dev-launcher/ios/DevLauncherNetworkInterceptor.swift @@ -60,7 +60,10 @@ extension RCTInspectorDevServerHelper { A0: bundleURL ) as? RCTInspectorPackagerConnection - DevLauncherNetworkInterceptor.inspectorPackagerConn = inspectorPackagerConn + // Exclude the connections for dev-client bundles + if !bundleURL.absoluteString.starts(with: Bundle.main.bundleURL.absoluteString) { + DevLauncherNetworkInterceptor.inspectorPackagerConn = inspectorPackagerConn + } return inspectorPackagerConn } }