Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ramoneariel
Channel Surfer

restart my app after config

Hi, how to can I restart my app after users finish setting up some features? Is there a command to do this?

Tags (1)
0 Kudos
1 REPLY 1
JulianToro
Reel Rookie

Re: restart my app after config

Take a look on this thread: https://community.roku.com/t5/Roku-Developer-Program/Restart-Application/td-p/493309

You can restart the app by relaunching via an external control service command:

  appId = createObject("roAppInfo").getID()
  url = substitute("http://localhost:8060/launch/{0}?restart=true", appId)
  launchRequest = createObject("roUrlTransfer")
  launchRequest.setUrl(url)
  launchRequest.postFromString("")
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!