Forum Discussion

coldrain's avatar
coldrain
Binge Watcher
7 years ago

What will happen with deprecated API

My channel is using GetDeviceUniqueID API to post data to my server just for statistic purpose. The document says that the API is going to be deprecated in Spring 2019. I try the new API GetChannelClientId() but it returns completely unrelated value. Does anyone know how I can switch to the new API without damaging my current statistic data?
By the way, what will happen after the API is really deprecated? Will the channel crash or the API just return blank value?

1 Reply

  • Going forward, there is no function that will return the same value that "GetDeviceUniqueID" returns now.  In order to transition seamlessly you'd need to be getting the current value from "GetChannelClientId" and switching them out or linking them up on your back end.
    I don't know for sure what they (Roku co) will do, but I'm guessing the deprecated function will issue a warning in debug and not crash the app.  But you won't be able to get a new app approved with that function in it.