restart_app icon indicating copy to clipboard operation
restart_app copied to clipboard

[Feature] Support for restart on iOS

Open yanivshaked opened this issue 3 years ago • 11 comments

Hi,

Do you have any plans to support restart on iOS?

Thanks

yanivshaked avatar Jun 01 '21 18:06 yanivshaked

It would be great!!!

gustavo-perini avatar Jun 21 '21 16:06 gustavo-perini

Yes please add support

swarupbc avatar Aug 09 '21 14:08 swarupbc

I just added web support to the restart app package, so it now supports both Android and Web platforms. But, in terms of iOS, I don't have any real plans since, before Flutter, I was an Android developer and, unfortunately, I have no expertise with iOS programming. So, if you have any ideas, please share them with me or submit a fork request so that the package may have complete platform support.

gabrimatic avatar Sep 21 '21 11:09 gabrimatic

There are no methods available in iOS to restart the app. So the best that can be done on IOS is to re-instantiate root UIViewController.

More info: https://stackoverflow.com/questions/66205648/is-there-any-way-to-restart-my-ios-app-programmatically

matekdk avatar Sep 22 '21 10:09 matekdk

I think in iOS you can only crash the app to stop it and you can't start it again

msxenon avatar Jan 21 '22 13:01 msxenon

There are no methods available in iOS to restart the app. So the best that can be done on IOS is to re-instantiate root UIViewController.

More info: https://stackoverflow.com/questions/66205648/is-there-any-way-to-restart-my-ios-app-programmatically

I tried this method, and it has a big problem: When I reassign the rootViewController with FlutterViewController, all the Flutter plugins are not available, and they need to register again.

gabrimatic avatar Jan 22 '22 11:01 gabrimatic

As my research and other developers suggestions, there isn't any working solution for that. I keep this issue open for new ideas

gabrimatic avatar Jan 22 '22 11:01 gabrimatic

Hi. Is it working on iOS now?

Milimeter avatar Jul 25 '22 13:07 Milimeter

Any progress on this ?

khang-dev avatar Nov 29 '22 04:11 khang-dev

https://stackoverflow.com/a/66206070

hosseinkhojany avatar Dec 01 '22 14:12 hosseinkhojany

Following, need iOS support

isAlmogK avatar Dec 07 '22 20:12 isAlmogK

its 2023 and no solution for iOS , has anyone been able to figure it out

zamirszn avatar May 07 '23 10:05 zamirszn

@Milimeter, @khang-dev, @hosseinkhojany, @isAlmogK, @zamirszn I appreciate your support and feedback on this package!

Unfortunately, restarting a Flutter app using native APIs in iOS is not supported by the platform. However, you can look at this StackOverflow answer, or if you have a solution, do not hesitate to add it here.

I keep this issue open for new ideas

gabrimatic avatar May 19 '23 07:05 gabrimatic

@Milimeter, @khang-dev, @hosseinkhojany, @isAlmogK, @zamirszn I appreciate your support and feedback on this package!

Unfortunately, restarting a Flutter app using native APIs in iOS is not supported by the platform. However, you can look at this StackOverflow answer, or if you have a solution, do not hesitate to add it here.

I keep this issue open for new ideas

alright , thanks alot

zamirszn avatar May 23 '23 12:05 zamirszn

After a very long period, iOS support has now been added to the restart_app package v1.2.0!

gabrimatic avatar May 25 '23 07:05 gabrimatic