1

I use AngularJS and Cordova build app android. I want have a button with action restart app.
How to restart this app?

phuchoangmai
  • 305
  • 1
  • 5
  • 15
  • Why would you like to restart your application? Don't you simply need to reload your homepage? – C.Champagne Aug 03 '16 at 09:23
  • 1
    Possible duplicate of [Restart my Phonegap app programmatically](http://stackoverflow.com/questions/15477887/restart-my-phonegap-app-programmatically) – Tuhin Aug 03 '16 at 10:46

1 Answers1

2

Whatever you exactly want, you can have a look at this post which gives you a very simple answer:

location.reload();

As stated in the comments, it does not properly restart your application (meaning completely stop and then start it again) but it should do the trick most of the time.

Community
  • 1
  • 1
C.Champagne
  • 5,381
  • 2
  • 23
  • 35