I have use following code in my application it is work on locally but when I was hosting as a private channel then the code is return “invalid”. Please refer following code and help me to resolve this error.
store = CreateObject(“roChannelStore”) msgport = CreateObject(“roMessagePort”) store.SetMessagePort(msgport) upgrade = invalid result = store.GetPartialUserData(“email”) 'store.GetUserData() print(result) DisplayNoData(“result”) while true msg = wait(1, msgport) if(result <> invalid) InsertSubscribeInformation(result.email,memberStatus) else DisplayNoData(“result invalid”) endif exit while end while
See RokuJoel’s comment in this thread: viewtopic.php?f=34&t=74634&p=457962#p457962
I believe this is a recent policy change, which could explain why it worked before, but no longer does.
There is no other way to retrieve the user’s email address aside from prompting them to enter it manually via an roKeyboardScreen.
We haven’t to my knowledge changed anything on the service side that would stop this from working. Perhaps you were testing it locally as a side-loaded channel. If you are not enrolled in Roku billing, this function won’t work. It also won’t work on Legacy devices.