Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AmazeGamez
Reel Rookie

Any alternative to 8060/install ECP command?

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?

Tags (1)
0 Kudos
2 REPLIES 2
RokuBen
Community Moderator
Community Moderator

Re: Any alternative to 8060/install ECP command?

No, ECP from your application to the device is forbidden.

The suggested interface to use is roAppManager.showChannelStoreSpringboard

https://developer.roku.com/docs/references/brightscript/interfaces/ifappmanager.md#showchannelstores...

 

AmazeGamez
Reel Rookie

Re: Any alternative to 8060/install ECP command?

Is there any other way?

roAppManager.ShowChannelStoreSpringboard() function deprecated


https://blog.roku.com/developer/springboard-api-deprecation 

0 Kudos
Community is Being Upgraded!

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!