skip to Main Content

I made a small shopping application with flutter using Android studio, it retrieves the items from a database on 000webhost,it works perfectly fine on pc and even on a phone emulator on pc,but if I turn it into an apk file and send it to my phone Nothing happens when I try to login or register a new account, I’m not very familiar with flutter or hosting databases yet as I’m still learning and this is my first project. My guess is it’s not connecting to the database, any ideas how to fix it?

I don’t know what I should do or what files to attach to the post so let me know

2

Answers


  1. i think you forgot to add internet pemission in AndroidManifest.xml file

    add this line in AndroidManifest file

    <uses-permission android:name="android.permission.INTERNET" />
    
    Login or Signup to reply.
  2. Maybe you don’t give access to internet in android manifest

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search