Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
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?

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("")