This does not seam to work anymore. Schedule publishing is greyed out.
I am using ChannelStore to query subscription status and submit an order but the static analysis tool is not picking it up.
When you query roChannelStore and wait for the response, check the type of the returned message. I have this in my code, so I must have dealt with this before.
while true msg = wait(0,port) print type(msg) if msg <> invalid and type(msg) = "roChannelStoreEvent" then ' check for type is just to pass Static Analysis ... end while
Simply adding that check did not pass static analysis.
I am not using the roChannelStore object, I am only using the <ChannelStore/> component.
Does static analysis only support roChannelStore?
RESOLVED!
I found the solution in the scenegraph-master-sample repo/Subscriptions repo.
' to handle Roku Pay we need to create channelStore object in the global node m.global.AddField("channelStore", "node", false) m.global.channelStore = CreateObject("roSGNode", "ChannelStore")
I was using a <ChannelStore> element in the XML.
Thanks for letting us know! I was going to suggest just creating a dummy roChannelStore element to get past the analysis. May have been a hack, but probably would have worked.
I am also getting same error. Can someone tell me how can I resolve this error,
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. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!