-
-
Notifications
You must be signed in to change notification settings - Fork 1
u.Restart Application
marchbold edited this page Jan 9, 2019
·
2 revisions
Restarting the application is simply a matter of calling the restartApplication()
method:
RestartApp.service.restartApplication();
Calling this function will terminate and schedule an immediate restart of the current application.
To check if restarting the application is supported on the current device platform and version you can check the canRestartApplication
flag:
if (RestartApp.service.canRestartApplication)
{
RestartApp.service.restartApplication();
}
else
{
// Not supported on this device / platform
}