Issue Issue with user pressing back button (possible solution)

larryh

New Member
When a user presses the Back-Button when running our webapp, the user gets an error
"Webpage not available
net::ERR_CACHE_MISS"


In searching this up, I found an answer that from what I gather only AppYet can sort out, since we do not have access to the manifest or compiler.

by changing the AndroidManifest.xml.

old : <uses-permission android:name="android.permission.internet"/>
new: <uses-permission android:name="android.permission.INTERNET"/>

https://stackoverflow.com/questions/30637654/android-webview-gives-neterr-cache-miss-message


1. Check if <uses-permission android:name="android.permission.INTERNET" /> is present in manifest.xml. Make sure that it is nested under <manifest> and not <application>.

2. Ensure that you are using <uses-permission android:name="android.permission.INTERNET"/> instead of the deprecated <uses-permission android:name="android.permission.internet"/>.

3. If minimum version is below KK, check that you have

if (18 < Build.VERSION.SDK_INT ){
//18 = JellyBean MR2, KITKAT=19
mWeb.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
}

or

if (Build.VERSION.SDK_INT >= 19) {
mWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
}
 
Top