Add Internet Permission for Android app in AndroidManifest.xml

When your app has a feature which requires to access the internet, you need to add extra permission in androidManifest.xml. Otherwise, the application will failed when loading to the internet connection part.

What you need to do is to add this line to AndroidManifest.xml file.

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

The xml file can be found at app > src > main > AndroidManifest.xml. Even you are writing app using Flutter, it is also required to add this permission to the file under android folder.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.tltemplates.awesome">
    <uses-permission android:name="android.permission.INTERNET" />
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="awesome"
        android:icon="@mipmap/ic_launcher">
    </application>
</manifest>

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close