Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Mar 4, 2021
1 parent 26feeea commit 83686f3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.

# Announcement

All the configuration and info about Getting Started with this plugin and code examples will be moved from here to the new [inappwebview.dev official website](https://inappwebview.dev/)!
I will create a new section there for better visualization and management.

Stay tuned!

## API Reference

See the online [API Reference](https://pub.dartlang.org/documentation/flutter_inappwebview/latest/) to get the **full documentation**.
Expand Down Expand Up @@ -115,6 +122,9 @@ Future main() async {
}
```

#### Enable Material Components for Android
To use Material Components when the user interacts with input elements in the WebView, follow the steps described in the [Enabling Material Components instructions](https://flutter.dev/docs/deployment/android#enabling-material-components).

### IMPORTANT Note for iOS

If you are starting a new fresh app, you need to create the Flutter App with `flutter create --androidx -i swift`
Expand Down Expand Up @@ -1622,7 +1632,7 @@ Check https://caniuse.com/serviceworkers for JavaScript Service Worker API avail
#### Service Worker API on Android

On Android, the `AndroidServiceWorkerController` and `AndroidServiceWorkerClient` classes can be used to intercept requests.
Before using these classes or its methods, you should check if the service worker features you want to use are supported or not, for example:
Before using these classes or their methods, you should check if the service worker features you want to use are supported or not, for example:
```dart
Future main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -1651,7 +1661,7 @@ Future main() async {

#### Service Worker API on iOS

The JavaScript Service Worker API are available starting from iOS 14.0+.
The JavaScript Service Worker API is available starting from iOS 14.0+.

To enable this JavaScript API on iOS there are only 2 ways:
- using "App-Bound Domains"
Expand All @@ -1661,7 +1671,7 @@ To enable this JavaScript API on iOS there are only 2 ways:

Read the [WebKit - App-Bound Domains](https://webkit.org/blog/10882/app-bound-domains/) article for details.

You can specify up to 10 "app-bound" domains using a new Info.plist key `WKAppBoundDomains`, for example:
You can specify up to 10 "app-bound" domains using the new Info.plist key `WKAppBoundDomains`, for example:
```xml
<dict>
<key>WKAppBoundDomains</key>
Expand Down

0 comments on commit 83686f3

Please sign in to comment.