Flutter app is not showing as an icon on the android emulator homescreen - flutter

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.

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

You can try to run your app from VS Code itself.
Use this bottom Menu button to launch emulator:
Select your Emulator from listed / Create a new one:
Hope it helps!

Related

Flutter App can't launching in iPhone without connecting to the computer?

I can build & launching app well in my iPhone when my phone is connecting to the macbook , and launching by the command line flutter run.
But when i disconnect my iPhone from the macbook . and I want to launch the app from the iPhone's desktop. the app seems can't launch , and will exit very soon.
Is there any way to launch flutter app from the iPhone's desktop?
This is happen because you are building iOS app in debug mode, run app in profile or release mode and it will fix.
Thanks for the #eamirho3ein's answer: change the debug to release fix the problem.
In fact, there is one thing to be metioned: the default config in xcode for command-line build is release already, but if you change this mode won't help. the mode needed to be change is the flutter run mode.
there are many ways to do this.

Run flutter app from iphone launcher itself

I'm new to flutter, I developed apps in Android Studio for ios devices, and they run perfectly when I run them from Android Studio onto the real device. However, if I try to run the app from the iphone itself (from the launcher icon), the app imediately closes and doesn't run.
Why would this be? Is there anything I can do in the code to enable the app to run from the phone itself, not just through running it in Android Studio?
Thanks for any help!

How do I remove devices for running Flutter?

I tried creating a new flutter project in Visual Studio Code, but for whatever reason it now has a default device of Google Chrome every time I try to run it. I don't want to run Flutter in web environments whatsoever: is there any way I can disable this?
Run the following command to disable web completely.
flutter config --no-enable-web
Then restart your editor if necessary.
First, run your emulator from the AVD manager or connect your physical device while it's on debugging mode, if it's an android device, then choose the device you want to run from the flutter device selection option

Ionic remote debugging not showing the app

Hey Im trying to Remote debug an Ionic Application, it was working recently, but now the device shows on Chrome Remote devices but when i click the device the app process wont show. it will show other mobile chrome tab Processes but not the Ionic app.
any clues ?
I fixed this, It was my fault, I built a release apk and was expecting a debug mode. When you build without the --release, It works

Android Emulator starts, but it doesn't run android system

I try to run my app in android emulator. From the begining, everythigs works fine. I create new device in Android Vrtual Device Manager, then i run the device. After a while i can see an emulator with mobile skin - that's all, nothing else happens. The device has black screen and in the Android Monitor I see this:
screen from Android Monitor
When i try to run my app I recive this:
screen from selecting deployment
When I try to run app from this window, somethig is going to happen. I have to wait long long time but finally, android is started on the device but meanwhile i recive error "Session 'app':Error Instaling APK. Sometimes app will run, sometimes not, but everything works very very slow. When i run app directly (without running device from AVD Manager), app is bulided and then i see a process "Waiting fro target device to come online", emulator runs but with black screen.
I have no idea what to do now. I reinstaled Android Studio twice - always the same result.
I have to add that a few days ago everythings works perfect - very fast and without problems. Recently I was installing Ubuntu on a new partition, I've done some changes in widows driver manager. Maybe this is a reason?
What I should do now? Thanks in advance