Help retrieving MAC Address and LGUDID on webOS in development mode

Hello everyone :waving_hand:,

I’m currently developing a webOS app using React (JavaScript) and I’m trying to retrieve both the MAC Address and the LGUDID using the following APIs:

luna://com.webos.service.connectionmanager → to get MAC address via getinfo

luna://com.webos.service.sm → to get LGUDID via deviceid/getIDs

The permissions are already set in my appinfo.json as follows:

“requiredPermissions”: [
“time.query”,
“activity.operation”,
“systemservice”
],
“webos”: {
“services”: [
“luna://com.webos.service.sm”,
“luna://com.webos.service.connectionmanager”
]
}

I’ve also made sure to load the webOSTV.js library in my app and everything works fine on the UI side. However, when testing on a real LG TV in developer mode, the API calls either return no result or fail silently, even though similar commercial apps (like SmartOne IPTV) display the MAC address instantly.

I’m aware that deviceid/getIDs requires user consent, but I haven’t seen any clear documentation on how to implement or simulate this agreement. Could anyone confirm:

Is it possible to retrieve real MAC address and LGUDID in developer mode?

How can I programmatically or visually obtain user consent for the LGUDID access?

Are there additional configurations needed for development builds?

Any guidance would be greatly appreciated :folded_hands:. Thank you in advance for your support

Currently, no API is provided to get MAC address. For LGUDID, you can refer to webOSTV.JS Library sample app(com.sample.webostvjs.dev). Thank you.

1 Like