EnTerr
10 years agoRoku Guru
Enable an in-channel product for a side-loaded app?
I start wondering if the reason i can't see an "in-channel product" i defined in the code i am debugging is that it is not associated with "dev" channel as such.
While seriously under-documented, it seems as the logic dictates that contents returned by getCatalog()/getPurchases() would be filtered against the current channel - since it would be counter-productive if say account has 100 apps and each of them gets list of purchases from all the others.
Sooo, question is what is the case for the "dev" (the ID of the side-loaded) channel? It could be that it's exception and gets the full list - which i don't think is the case. Or it could be that it gets none, because current UI does not allow to associate "dev" with products (temporarily for debug/testing purposes, obviously). Which makes coding/debugging the process really hard.
If i am guessing right, here is a proposal for the Co to implement:
Make "dev" an option when selecting the channel-vs-product affinity under "Edit In-Channel Product" in dev. panel.
While seriously under-documented, it seems as the logic dictates that contents returned by getCatalog()/getPurchases() would be filtered against the current channel - since it would be counter-productive if say account has 100 apps and each of them gets list of purchases from all the others.
Sooo, question is what is the case for the "dev" (the ID of the side-loaded) channel? It could be that it's exception and gets the full list - which i don't think is the case. Or it could be that it gets none, because current UI does not allow to associate "dev" with products (temporarily for debug/testing purposes, obviously). Which makes coding/debugging the process really hard.
If i am guessing right, here is a proposal for the Co to implement:
Make "dev" an option when selecting the channel-vs-product affinity under "Edit In-Channel Product" in dev. panel.