Add Internet Permission in Flutter

Create Free Backend With Appwrite

Internet Permission in Flutter

In this example, you will learn how to add internet permission in flutter. And then you will learn how to add internet permission in flutter for android and ios.

Add Internet Permission in Android

To add internet permission in android, you need to add the following line in the android/app/src/main/AndroidManifest.xml file.

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

File Should Look Like This:

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:label="Learn Computer Basic"
        android:icon="@mipmap/ic_launcher">

Add Internet Permission in iOS

To add internet permission in iOS, you need to add the following line in the ios/Runner/Info.plist file.

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>