Forum Discussion
Rashmikapil1
7 years agoBinge Watcher
This is observed only after the UI change for purchase.
I am attaching the logs running the sampleChannelStore app (from roku documentation)
------ Running dev 'Simple Channel Store' main ------
HERE>>>>>>>> onGetCatalog <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Items Received"
}
HERE>>>>>>>> onGetCatalog field catalog
>>>>>>command>>>>>>> getCatalog
>>>>>>>>>>>>>>> onProductSelected
HERE>>>>>>>> onProductSelected field: itemSelected
>>>>>>>>>>>>>>> onGetUserData
HERE>>>>>>>> onGetUserData field: userData
>>>>>>>>>>>>>>> MakePurchase
m.store.command = doOrder
HERE>>>>>>>> onGetCatalog <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Items Received"
}
HERE>>>>>>>> onGetCatalog field: catalog
>>>>>>command>>>>>>> doOrder
HERE>>>>>>>> onOrderStatus <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Order Received"
}
HERE>>>>>>>> onOrderStatus field: orderStatus
>>>>>>command>>>>>>> doOrder
There is a call for onGetCatalog() after calling MakePurchase and before orderStatus is changed..
I am attaching the logs running the sampleChannelStore app (from roku documentation)
------ Running dev 'Simple Channel Store' main ------
HERE>>>>>>>> onGetCatalog <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Items Received"
}
HERE>>>>>>>> onGetCatalog field catalog
>>>>>>command>>>>>>> getCatalog
>>>>>>>>>>>>>>> onProductSelected
HERE>>>>>>>> onProductSelected field: itemSelected
>>>>>>>>>>>>>>> onGetUserData
HERE>>>>>>>> onGetUserData field: userData
>>>>>>>>>>>>>>> MakePurchase
m.store.command = doOrder
HERE>>>>>>>> onGetCatalog <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Items Received"
}
HERE>>>>>>>> onGetCatalog field: catalog
>>>>>>command>>>>>>> doOrder
HERE>>>>>>>> onOrderStatus <Component: roSGNode:ContentNode> =
{
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: ""
status: 1
statusMessage: "Order Received"
}
HERE>>>>>>>> onOrderStatus field: orderStatus
>>>>>>command>>>>>>> doOrder
There is a call for onGetCatalog() after calling MakePurchase and before orderStatus is changed..