Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reboot or reload iPhone app programmatically in iOS

I have dowloaded an xml file that contains some update parameters and then I need to reload these parameters and init some views. Easiest way is to apply this configuration on next app boot. Is there any way to reboot iOS application programmatically?

Thank you.

like image 765
Jaume Avatar asked Feb 03 '12 10:02

Jaume


People also ask

How do I programmatically restart an iOS app?

You cannot restart an iOS Application in any case, even if you're able to do using some private api your application will be rejected by Apple and will not be considered for App store release.

How do you refresh an iOS app?

On iOS. Double click the home button and all the apps you've been using should pop up. Find the screen you'd like to refresh, then flick it upwards until it disappears from the screen.

How do I force reload an app?

Tap Apps. It's next to an icon of four circles in the Settings menu. You will see an alphabetical list of all the apps installed on your Android device. Tap the app you want to restart.


1 Answers

Rebooting the app is a bad idea, I'm pretty sure Apple would reject it. However, You could display a popup telling the user to open a close the app to apply your updated information. But the best way would be just to manually call the methods needed to rebuild your app (I.e. the ones that need to use the updated data). If you have to do some extensive rebuilding (i.e. things that the user would immediately notice) it might be a good idea to add in a "loading" progress bar of sorts.

like image 133
Amit Shah Avatar answered Oct 18 '22 15:10

Amit Shah