I use AngularJS and Cordova build app android.
I want have a button with action restart app.
How to restart this app?
Asked
Active
Viewed 3,233 times
1

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
-
1Possible 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 Answers
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
-
@Tuhin You are right. It am not used to it but I should. The answer was so easy to found. – C.Champagne Aug 03 '16 at 11:22