Add Internet Permission for Android App in AndroidManifest.xml

When your app has a feature that requires to access the internet, you need to add extra permission in androidManifest.xml. Otherwise, the application will fail 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 if you are writing an app using Flutter, it is also required to add this permission to the file under the 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>

By adding this permission, your app can use the internet to perform various tasks such as accessing web content, downloading data, and sending/receiving network requests. It’s important to note that by adding this permission, your app can potentially access sensitive user data over the internet, so it’s important to use this permission judiciously and only when necessary.

Leave a Comment

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


Scroll to Top

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