Trying to construct a message port on a non-plugin thread:
I'm attempting to get the user's info for a sign up flow in a scene graph component.
I read that I'll need to construct the store object inside of Task. I also need to assign a port as described in the documentation so I can pull the user's info. I end up getting an error when running this code:
<component name="storeRegister" extends="Task">
<script type="text/brightscript" > <![CDATA[
sub init() store = CreateObject("roChannelStore") port = CreateObject("roMessagePort") store.SetMessagePort(port) testUser = store.GetPartialUserData("email, firstname") end sub
Error: BRIGHTSCRIPT: ERROR: roMessagePort: Trying to construct a message port on a non-plugin thread: ...IQ/pkg:/components/store_register.xml(12)
How are others accessing store user data from within the scene graph API?