App works in debug mode but does not work in release mode

1,888 views
Skip to first unread message

Droper

unread,
Jun 17, 2020, 10:02:51 AM6/17/20
to Flutter Development (flutter-dev)

I am making a chat app..with firebase and CloudFirestore...in debug mode the app is working fine ..the chat and all is loading but ..When after building a apk the chat and the users are not loading..I Gave all the permision like:

Its working on debug mode: ss

https://user-images.githubusercontent.com/45168922/84598144-2ce0c480-ae86-11ea-80e1-a251b681e328.png

But when i built a apk :flutter build apk the users are not loading:

https://user-images.githubusercontent.com/45168922/84598162-4da91a00-ae86-11ea-98a1-04ef0c68e0de.jpeg

flutter doctor -v https://pastebin.com/P20Dy2TD

$ flutter run --verbose: https://pastebin.com/Q1P9qQdv

App source code:https://github.com/vipuluthaiah/Flutter-ChatApp-Ogga

Souvik Dutta

unread,
Jun 17, 2020, 10:47:02 AM6/17/20
to Droper, Flutter Development (flutter-dev)
Have you run the app in a physical device? I think there won't be any problem when running in a physical device. Because the verbose output says that release mode is not supported in an emulator. 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/6e58ddf8-70a2-4366-8818-c92f3bbfe245o%40googlegroups.com.

Hassan Hammad

unread,
Jun 17, 2020, 12:29:58 PM6/17/20
to Souvik Dutta, Droper, Flutter Development (flutter-dev)
Did u test on an android device? 
You need to add this in the AndroidManifest.xml: 
<uses-permission android:name="android.permission.INTERNET"/>

ABADA SAMUEL

unread,
Jun 17, 2020, 12:51:58 PM6/17/20
to Droper, Flutter Development (flutter-dev)
Add internet permission in your android manifest and run the app on an actual device

--
Reply all
Reply to author
Forward
0 new messages