Commit 3fd1f955 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

updated README.md and issue templates, added...

updated README.md and issue templates, added WebStorage.getInstance().deleteAllData() to clearAllCache on Android
parent d66e5ca7
......@@ -6,10 +6,12 @@ about: Something is crashing or not working as intended
## Environment
**Flutter version:**
**Plugin version:** <!-- Add branch if necessary -->
**Android version:** <!-- If customize ROM, write which -->
**iOS version:**
**Xcode version:**
**Device information:** <!-- Manufacturer and model -->
**Flutter version:** <!-- Flutter version used -->
## Description
......
......@@ -6,8 +6,11 @@ about: Suggest an idea for this project
## Environment
**App version:** <!-- Add branch if necessary -->
**Flutter version:**
**Plugin version:** <!-- Add branch if necessary -->
**Android version:** <!-- If customize ROM, write which -->
**iOS version:**
**Xcode version:**
**Device information:** <!-- Manufacturer and model -->
## Description
......
This diff is collapsed.
......@@ -16,9 +16,11 @@ A Flutter plugin that allows you to add an inline webview or open an in-app brow
- Android: `minSdkVersion 17`
- iOS: `--ios-language swift`, Xcode version `>= 11`
### Note for Android
### IMPORTANT Note for Android
During the build, if Android fails with `Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library`, it means that you need to update the `minSdkVersion` of your `build.gradle` file to at least `17`.
During the build, if Android fails with `Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library`, it means that you need to update the `minSdkVersion` of your `android/app/build.gradle` file to at least `17`.
Also, you need to add `<uses-permission android:name="android.permission.INTERNET"/>` in the `android/app/src/main/AndroidManifest.xml` file in order to give minimum permission to perform network operations in your application.
Because of [Flutter AndroidX compatibility](https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility), the latest version that doesn't use `AndroidX` is `0.6.0`.
......
......@@ -16,6 +16,7 @@ import android.webkit.ValueCallback;
import android.webkit.WebBackForwardList;
import android.webkit.WebHistoryItem;
import android.webkit.WebSettings;
import android.webkit.WebStorage;
import com.pichillilorenzo.flutter_inappwebview.ContentBlocker.ContentBlocker;
import com.pichillilorenzo.flutter_inappwebview.ContentBlocker.ContentBlockerAction;
......@@ -854,6 +855,7 @@ final public class InAppWebView extends InputAwareWebView {
clearCache(true);
clearCookies();
clearFormData();
WebStorage.getInstance().deleteAllData();
}
public void takeScreenshot(final MethodChannel.Result result) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment