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

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.

Related

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

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!

How do I solve fultter app not installed in my device?

I'm getting a prompt on my mobile device asking if I want to install the app on my device. I give yes, then nothing happens! for the first time and the app never installed before
I tried to use the cmd to connect my mobile device , I tried to restart my device and I've done the same steps in my device setting again

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 to have iPhone emulator on Windows using Flutter?

I am new to Flutter. I want to test my app on an iPhone emulator (or simulator) just to see how does it look in real time?
I am using these:
Windows 10
Visual Studio Code
It is not possible. You need macOS to install Xcode, without which iOS development & running is not possible.
With windows, you cannot even run it on an iPhone if you had one.

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