Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support for restart on iOS #1

Closed
yanivshaked opened this issue Jun 1, 2021 · 15 comments
Closed

[Feature] Support for restart on iOS #1

yanivshaked opened this issue Jun 1, 2021 · 15 comments

Comments

@yanivshaked
Copy link

Hi,

Do you have any plans to support restart on iOS?

Thanks

@gustavo-perini
Copy link

It would be great!!!

@swarupbc
Copy link

swarupbc commented Aug 9, 2021

Yes please add support

@127 127 mentioned this issue Sep 21, 2021
@gabrimatic
Copy link
Owner

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.

@matekdk
Copy link

matekdk commented Sep 22, 2021

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

@msxenon
Copy link

msxenon commented Jan 21, 2022

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

@gabrimatic
Copy link
Owner

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
Copy link
Owner

gabrimatic commented Jan 22, 2022

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

@Milimeter
Copy link

Hi. Is it working on iOS now?

@khang-dev
Copy link

Any progress on this ?

@hosseinkhojany
Copy link

@isAlmogK
Copy link

isAlmogK commented Dec 7, 2022

Following, need iOS support

@zamirszn
Copy link

zamirszn commented May 7, 2023

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

@gabrimatic
Copy link
Owner

@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

@zamirszn
Copy link

zamirszn commented May 23, 2023

@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

@gabrimatic
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests