Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ionatan
Level 7

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
Roku Employee
Roku Employee

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