Flutter Network
flutter – android – http.get never works in deployed device / release mode
April 8, 2021
0
, ,

Recently while working & testing on my own app Zbotics (That assist with Robot Voice when to do what to my family member) which has been made by flutter 2, I have found that App loads data using http.get properly in IOS Simulator & real device but it was not working in Android Device at anyhow.

As, I am novice in this Flutter, it took so much time to figure out the exact solution.

It is located in android/src/main/AndroidManifest.xml, add the highlighted text

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

AndroidManifest.xml

The solution has been described in Flutter website also: https://flutter.dev/docs/development/data-and-backend/networking

Similiar Post is on Stackoverflow : https://stackoverflow.com/questions/64120563/flutter-android-http-get-never-returns-in-release-mode

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

Flutter:: Chat UI Screen

lib/main.dart import 'package:flutter/foundation.d...

Read more

Flutter:: Proposed Folder Structure

Assets Folder — assets/fonts/— assets/...

Read more

Flutter::Models

Sample Model class User { final int id; final Stri...

Read more

There are 0 comments

Leave a Reply

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