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: 
Ananda
Visitor

GetPartialUserData return invalid object when it hosted

Hi,

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


thanks
0 Kudos
4 REPLIES 4
TheEndless
Channel Surfer

Re: GetPartialUserData return invalid object when it hosted

GetPartialUserData() only works if you're enrolled in Roku billing.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Ananda
Visitor

Re: GetPartialUserData return invalid object when it hosted

Thanks for your reply.. but it is work fine before.. And it is any another way to get member email address.
0 Kudos
TheEndless
Channel Surfer

Re: GetPartialUserData return invalid object when it hosted

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.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
RokuJoel
Binge Watcher

Re: GetPartialUserData return invalid object when it hosted

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.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.