slecault
7 years agoContributor
iOS app Restart
Is there a way to "restart" of an instrumented iOS app? I use the following command with Android: Mobile.Device.Process('com.myapp.abc').Restart;
Hi,
What does 'Restart' mean?
You may press Home button one or more times until the main application's window is not visible.
However, to my understanding, this does not guarantee that the application is terminated.
For Android, the code to terminate the application looks like this:
device.ShellExecute('am force-stop ' + cPackageName);
I think that something like this should exist for iOS as well...
Alex,
I do use the Android ShellExecute... but did not find an iOS equivalent yet.
The restart "closes" the app and restarts it without reinstalling the package.
When my scripts it a problem, I restart the app and move on to the next script.
My app does not behave the same after installing vs restarting. Installing is a lot longer.
Might have a good idea using TestedApp. "kill" or ."Restart" with iOS
Hi,
> Might have a good idea using TestedApp. "kill" or ."Restart" with iOS
Might be, indeed.
However, with the quick google search, it looks like this is just near to impossible in iOS (highly not recommended, at least):
https://forums.xamarin.com/discussion/16932/can-an-ios-app-restart-itself
https://developer.apple.com/library/content/qa/qa1134/_index.html