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: 
ionatan
Roku Guru

GetChannelClientId - What makes identifier unique?

Hello,

I have some questions about identifier returned by GetChannelClientId https://sdkdocs.roku.com/display/sdkdoc/ifDeviceInfo#ifDeviceInfo-GetChannelClientId()asString. Based on Developer Documentation "the ID is persistent and cannot be reset".
I'm wondering what makes this identifier persistent per Channel. Would this stay the same even if Channel name or Channel version is changed? Then how does Roku device make the difference between Channels?

 
0 Kudos
1 REPLY 1
NB_
Roku Guru

Re: GetChannelClientId - What makes identifier unique?

each channel has unique ID already - the one that you see in ECP :8060/query/apps or 8080 `plugins`, or in the URL of dev.portal when editing app properties. if that is used as part of the input to cryptographic hash function, it will ensure that the output digest differs from app to app. i haven't looked at the specific function but there is good likelihood that's what it does too
0 Kudos
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.