slingxshot
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2017
04:19 PM
Restart Application
I have a logout button, and I want to restart application, possibly go back all the way to main.brs... anyway to reload the app or reload the scene?
Thanks!
Thanks!
5 REPLIES 5
slingxshot
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017
08:53 AM
Re: Restart Application
Doesn't seem to be a good way to restart application. The scenes just go on top, and trying closing the scene, exits the app or causes errors. There is probably a way so not worth. Instead I just exit the app and let the user go back in.
https://github.com/rymawby/roku-app-exit
https://github.com/rymawby/roku-app-exit
gabek
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017
01:47 PM
Re: Restart Application
appId = createObject("roAppInfo").getID()
url = substitute("http://localhost:8060/launch/{0}?restart=true", appId)
launchRequest = createObject("roUrlTransfer")
launchRequest.setUrl(url)
launchRequest.postFromString("")
It's probably not everybody's cup of tea, but in the most literal sense this will actually restart your application as opposed to other approaches where you try to clean up state and reload your SceneGraph components.
slingxshot
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2017
08:41 AM
Re: Restart Application
Oh man I wish i saw this earlier. This helps me a lot, solves 2 problems at once. I wanted to have authentication completed separate from the main app and this allows me after authentication restart the app and reset all settings with the registry, etc. Thank You!
ramoneariel
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2023
11:17 AM
Re: Restart Application on roku 12.0.0
This option works perfectly fine until Roku 11.50, but not from version 12.0.0. Return status 403,
ECP is not allowed from loopback address
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2023
06:13 PM
Re: Restart Application on roku 12.0.0
everyone facing such need, pls open ticket with partner success at roku.com, as to draw attention to the issue