You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. March 2012, 15:51:23

bedrocktv

Posts: 13

unique device identifier

Is there an API call for reading a unique device identifier?

26. March 2012, 10:51:24

Opera Software

lbendig

Posts: 55

There is no such API.

4. May 2012, 09:21:48

bedrocktv

Posts: 13

How would you recommend we handle generating a unique identifier for DRM?

6. August 2012, 21:11:00

meteorites

Posts: 43

Recently we have added "uid" parameter that is passed to the application when starting it with get method. It should be helpful to identify returning users. You can use it in your application, unfortunately it is not supported in the TV Emulator if you directly start your app from there since it needs to be started by the TV Store. Right now you can simply assume your app will receive the uid when started from the TV Store. We are working on having it TV Emulator as well.

As an alternative you can generate the unique identifier in your app and store in cookies but please remember that persistent storage at devices is limited so in corner cases it may be not persistent.

13. August 2012, 06:38:02

casedy

Posts: 1

I don't have a device with opera tv, but i need to generate UID. Please give me a sample code how this do it.

21. August 2012, 10:25:13

meteorites

Posts: 43

The "uid" is passed as get parameter. Here is example code how you can extract it: http://stackoverflow.com/questions/5448545/how-to-retrieve-get-parameters-from-javascript

If you will use code marked as "answered Mar 27 '11 at 10:26" you should be able to use then "parms.uid" to get uid value when your app is started in the TV Store. For testing purposes you should run your app like this: foo.com/bar/?uid=12345 to get "uid" in there but when submitting to TV Store please submit foo.com/bar/ only.

Forums » Dev.Opera » Opera TV Content Development Discussions