How to restart the NativeScript Angular app?

331 views Asked by At

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

1

There are 1 answers

1
jawdat abdallh On BEST ANSWER

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: