Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AmazeGamez
Newbie

Any alternative to 8060/install ECP command?

Jump to solution

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?

0 Kudos
1 Solution

Accepted Solutions
RokuBen
Community Moderator
Community Moderator

Re: Any alternative to 8060/install ECP command?

Jump to solution

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...

 

View solution in original post

1 REPLY 1
RokuBen
Community Moderator
Community Moderator

Re: Any alternative to 8060/install ECP command?

Jump to solution

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...

 

Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.