expo / expo/eas-cli

Error when launching webview after building

Open
#3,037 0 comments 0 reactions 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 8h
Merged PRs (30d)
98

Description

### Build/Submit details page URL

_No response_

### Summary

After building, receiving error when launching WebView
"Error loading page..."
Error Code: -1
Description: net: ERR_CLEARTEXT_NOT_PERMITTED"

### Managed or bare?

Bare

### Environment

My expo-env-info
expo-env-info 1.3.3 environment info:
System:
OS: macOS 15.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
Watchman: 2025.04.28.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Android Studio: 2024.3 AI-243.24978.46.2431.13363775
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ^51.0.1 => 51.0.39
expo-router: ~3.5.24 => 3.5.24
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
react-native-web: ~0.19.12 => 0.19.13
npmGlobalPackages:
eas-cli: 16.7.0
Expo Workflow: bare

### Error output

"Error loading page..."
Error Code: -1
Description: net: ERR_CLEARTEXT_NOT_PERMITTED"

Other engineer's env info
expo-env-info 1.3.3 environment info:
System:
OS: macOS 14.6
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
npm: 11.0.0 - ~/.nvm/versions/node/v20.17.0/bin/npm
Watchman: 2024.11.18.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11076708
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ^51.0.1 => 51.0.39
expo-router: ~3.5.24 => 3.5.24
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
react-native-web: ~0.19.12 => 0.19.13
npmGlobalPackages:
eas-cli: 16.2.2
Expo Workflow: bare

### Reproducible demo or steps to reproduce from a blank project

I am running into the error mentioned above after opening webview after building the apk file but the other engineers on my team do not run into this issue. I have share both my env-info and another engineer's. Could you please help pinpoint what might be the reason for me running into this issue?

In my iOS build,
NSAllowsArbitraryLoads: true

Android build,
android:usesCleartextTraffic="true"

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.