ramoneariel
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022
08:40 AM
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?
1 REPLY 1
JulianToro
Reel Rookie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023
04:30 PM
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("")