Flutter で wabpage not available。 「net::err_cleartext_not_permitted」

カテゴリー: 手順書,

メモです。

wabpage not available
The webpage at http://example.com could not be loaded because:
net::err_cleartext_not_permitted

デフォルトではSSLでないページを開けないぽい

Androidで準備されているテンプレートファイルをいろいろ試していると出てきた画面。AndroidManifest.xml を変更すると http:// でもいけるらしい。

PATH: android/app/src/main/AndroidManifest.xml

Before

    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="test_app"
        android:icon="@mipmap/ic_launcher">

After

    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="test_app"
        android:icon="@mipmap/ic_launcher"
        android:usesCleartextTraffic="true">

シミュレータを再起動で反映、無事非SSLページが開けた。


関連記事

関連記事はまだありません

手順書」のBookmark
「手順書」記事一覧