I used to promote my other Roku channels by showing users an ad on my new channel. When users clicked the ad, they were redirected to the Roku channel store to install the new channel using the following BrightScript code:
deviceInfo = CreateObject("roDeviceInfo")
deviceIP = deviceInfo.GetIPAddrs().eth1
url = "http://" + deviceIP + ":8060/install/" + id.ToStr()
request = CreateObject("roUrlTransfer")
request.SetUrl(url.EncodeUri())
request.AsyncPostFromString(url.EncodeUri())
With recent Roku changes, ECP commands are blocked from within a Roku channel, and my self-promotion method no longer works.
I need to promote my new channel inside my old channels to redirect users to the channel store so they can install my app.
Can the ECP install command be used from within the app?
Can I open my channel's channel store from my app?