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?
No, ECP from your application to the device is forbidden.
The suggested interface to use is roAppManager.showChannelStoreSpringboard
Is there any other way?
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!