Flutter provider not working in release apk, but working fine in debug mode Flutter provider not working in release apk, but working fine in debug mode dart dart

Flutter provider not working in release apk, but working fine in debug mode


Might be possible that you missed to add internet permission in AndroidManifest.xml

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

We have to add Internet permission in AndroidManifest.xml file for release build. It is working fine in debug mode. If you have been calling api call in provider. Same mistake I have done and resolved that issue.


If you add in the 2 AndroidManifest.xml files the internet permission

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

and it is still not works, so add this in the 2 files in the application tag

android:usesCleartextTraffic="true"