How do I programmatically “restart” an iOS app

Last updated Oct 27, 2021

         

                   You legally cannot do that. The closest thing to do is to invoke fatalError() function in Swift and it will kill the app. However you cannot start the app again programmatically. You can schedule a local notification to fire some time after the app was terminated. Put that code just before the fatalError() call that will tell the user to tap it in order to start the app manually. 

 

 

Article Contributed By :
https://www.rrtutors.com/site_assets/profile/assets/img/avataaars.svg

113 Views