-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
android 5.1.1 and simulator, WebView error on SDK36 and Exponent_2.14 #6665
Comments
Can you try this in a bare react native project? If the same error occurs there, then this is probably an issue specific to |
Hi Cruzach, Thanks! It seems like the problem happen on using Expo client 2.14.0(supported SDKs:33,34,35,36) and standalone app on sdk 36. |
same problem , any advice ? |
Tested this myself on more recent versions of Android and WebView seems to be working fine. So this looks to only affect Android 5? although I'm not sure why |
Hi Cruzach, |
Looks like this was an upstream Android issue, which is solved in Since 1.2.0 is still in alpha, it might be a good idea to wait for it to be a stable release |
It looks like 1.2.0 came out of alpha yesterday. Any ideas when this will be folded into Expo? https://developer.android.com/jetpack/androidx/releases/core |
looking for solutions expo sdk :- 39 |
+1 |
# Why Might help resolving: #6665 I've failed in reaching the working scenario, but still think this change is worth merging. # How Bumped androidx.appcomapat to version 1.2.0 # Test Plan I was testing on Android simulator running Android 5.1 As I've described in #10999 every WebView opened in separate Activity (any managed app) other than the main one (home app) seems to be lacking Internet access. The only URLs working in managed app are either the URL that's already in the device cache or google.com 🤔 No breaking behaviour was observed 😊 # References androidx.appcompat release notes stackoverflow.com/questions/58028821/webview-crash-on-android-5-5-1-api-21-22-resourcesnotfoundexception-string-r https://issuetracker.google.com/issues?q=err_cache_miss issuetracker.google.com/issues/141351441
issue not resolved, still looking for solutions |
Still not resolved. |
@JerryBels - you need to provide more information than that. are you using the latest sdk? we updated androidx.appcompat to 1.2.0 already, so as far as i can tell this is an upstream android issue |
With pleasure :)
For the webview:
Ran it on an Android 5.1, and got the following error :
The app works perfectly on a few phones running Android 10/11, and on an emulator running Android 9. If there are more checks you wish me to perform, I will gladly. |
@JerryBels - based on react-native-webview/react-native-webview#1101 this seems to still be an upstream issue in react-native-webview |
@brentvatne Okay so we need to wait for react-native-webview to do something (after more than 2 years?) ... I guess I will inform the client that Android 5.x can't be maintained. |
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
closing because it looks like the related issue is closed on react-native-webview. also, with EAS Build you can use any version of react-native-webview that you like (although only the version supported by the SDK version that you are using will work inside of Expo Go) |
I was facing the same error and here is how I fixed this issue
import * as React from 'react';
import { WebView } from 'react-native-webview';
export default function Browser() {
return (
<WebView
source={{ uri: 'techhelpbd.com/gitdown' }}
/>
);
} |
Expo CLI 3.4.1 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.19.1 - C:\Users\Administrator\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - D:\Program Files\nodejs\npm.CMD
Android: real device: V5.1.1, simulator(nox): V5.1.1500190725
expo Client: 2.14.0
SDK: 36
error happen on expo client and standalone android
note: webview working fine on SDK 35 and expo client 2.13 only, 2.14 will shows String resource ID #0x2040003 on real device.
Steps to Reproduce
Expected Behavior
It should render a webview page.
Actual Behavior
On my android simulator(nox), which is android V5.1.1500190725, it will shows
net::ERR_CACHE_MISS.
I found this open issue on react-native-webview,
react-native-webview/react-native-webview#1101
and still waiting reply.
Then I tried to run on my real device, the error becomes String resource ID #0x2040003
After I search the 0x2040003 error on google, it seems like this is a common issue on android V5.1.1 with context, however for some reasons, I have to use V5.1.1.
I downgrade my sdk to 35, and it shows same error, until I reinstall expo client 2.13, WebView works fine.
Reproducible Demo
<WebView source={{ uri: 'google.com', }} onNavigationStateChange={this.onNavigationStateChange} startInLoadingState // scalesPageToFit javaScriptEnabled style={{ flex: 1, paddingTop: StatusBar.currentHeight }} />
Thank you!
The text was updated successfully, but these errors were encountered: