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

夙愿已清 提交于 2020-05-29 07:41:06

问题


the provider should work to provide real time updates to consumers but only works in debug mode and not release mode. do i have to use the state full widget again to update the ui with set state, any clue?


回答1:


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.



来源:https://stackoverflow.com/questions/59888106/flutter-provider-not-working-in-release-apk-but-working-fine-in-debug-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!