I would like to be able to restart my app programmatically. It should run on all platforms (electron, ios, android, web). How can I achieve this?
This does the trick:
document.location.href = 'index.html';