Search code examples
luacoronasdkcorona-storyboard

How can i restart application from main.lua?


i am loading data from server and then in the next scene i am displaying that data in a list. But when i upload some new data in that case i need to restart my app from main.lua to show the new posts to users. I just have tried the following code:

storyboard.gotoScene("main","fromRight");

Solution

  • You can reload/restart your scene using this:

    storyboard.reloadScene()
    

    This Link can probably help you.