"RokuChris" wrote:
The examples are only examples. They must be adapted to specific situations since no two content providers are going to implement the back end the same way.. The examples are to learn from and build on, they are not a complete a solution to every developers situation
"dynamitemedia" wrote:
the up button or exit buttons dont do anything.
The best way to give the user the ability to back out of a roCodeRegistrationScreen is to add a "Back" button like the one in the example.
When you say you have used the example as is, do you mean you have installed the example channel or that you have copied code out of the example channel and into your channel?
The "Back" and "Get new code" buttons work correctly for me when I install the example channel.
A few of us have tried to point you in the right direction, but exactly how the example will need to be tweaked to fit into some other channel is not easy to predict.
"dynamitemedia" wrote:
when i click on the buttons they do nothing. the only thing i changed was added a sleep(5000) because it was registering so darn fast i couldn't test the buttons. so the sleep makes it sit there "retrieving code..." for 5 seconds
If adding the sleep made the buttons not work, maybe you can tell me what i can do so that this example just doesnt fly through and go to the congratulations screen in about 1 second flat.
Commenting out the "if msg = invalid exit while" line should get it to not exit immediately for you.
"dynamitemedia" wrote:
i was using as is and it was not working for me. so i added the sleep to it.
if you look at the code i posted earlier, does it show a sleep? no it does not because i am trying everything i can to get it to work, the example does not seem to work for me. all i have asked is someone tell me how to get it to work.
"dynamitemedia" wrote:Commenting out the "if msg = invalid exit while" line should get it to not exit immediately for you.
can you explain why this would stop it from registering so quickly and going straight to the "congratulations" screen?
I tried it, and this also doesn't do anything to stop it from jumping right on through the to the congratulations screen.
if not xml.Parse(rsp) then
print "Can't parse check registration status response"
ShowConnectionFailed()
return 2
endif
if xml.GetName() <> "result" then
print "unexpected check registration status response: ", xml.GetName()
ShowConnectionFailed()
return 2
endif
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!