The Flutter app I’m currently building works perfectly in debugging mode on the emulator, but when i create an apk and install it on my real phone it doesn’t work as intended.
I think it might has to do something with permissions because in my app i download some json from the internet. I can’t find a solution though that works.
2
Answers
I added this line of code
<uses-permission android:name="android.permission.INTERNET" />
just below the manifest opening tag to add Internet persmissions
Since you are getting data from server, you need to add internet permission so your app will be able to connect to the internet.
simply adding
on
Add this line, it will Fix your problem.
For example:
Happy Coding 🙂