Home > Mobile >  API data no displayed in release mode but working in debug mode flutter
API data no displayed in release mode but working in debug mode flutter

Time:07-08

My API GET request gives me List of images and text which is displayed in debug mode emulator and real device too with data cable but when I build apk and install it I do not get the data. Also my app is already in play store and this is new feature I am working on. Anyone could help me with that? I am using path_provider and path packages too.

CodePudding user response:

Add internet Permission in AndroidManifest.xml

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

CodePudding user response:

You have to provide internet permission inside android manifest file as right now you have in debug mode.

Mainfest file path : <project>/android/app/src/main/AndroidManifest.xml

enter image description here

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