Home > Software engineering >  Flutter app is not showing as an icon on the android emulator homescreen
Flutter app is not showing as an icon on the android emulator homescreen

Time:01-10

I am trying to build an app. I am using flutter as the framework and VS Code as my IDE. I also have an android emulator installed via android studio. I am trying to implement authentication. If i run my app it opens in the emulator and works just fine. Now i want to test if a user stays logged in when the app is closed (not running in the background) and reopened. However if i close the app in the android emulator, the whole process stops and there is no icon of my app on the home screen with which i could restart it. I have to "run and debug" again in VS Code to restart the process. Is there any way to start the app again via the emulator phone?

I updated the emulator and the flutter package, i changed emulator devices. Did not solve the problem.

CodePudding user response:

Because when your app is disconnected from debug - you can use hot restart its consider as app is kill and open again - here having a problem with flutter if you disconnect from debug your all assets will be remove from entire app. Another option - if you want to test your app then make release app and installed in physical device

CodePudding user response:

You can try to run your app from VS Code itself.

Use this bottom Menu button to launch emulator:

enter image description here

Select your Emulator from listed / Create a new one: enter image description here

Hope it helps!

  • Related