nativescriptrestartangular2-nativescriptnativescript-angularnativescript-plugin

How to restart the NativeScript Angular app?


I'm looking for a solution that helps me, with performing a restart to the native app programmatically.

I'm using the android platform only


Solution

  • At the end I've used android.os.Process.killProcess(android.os.Process.myPid()); inside of setTimeout witch working in most cases... and for iphone i used exit(0) or exit();

    my code is looks like this: