Git Product home page Git Product logo

Comments (6)

comrat avatar comrat commented on June 11, 2024

Hello @dseeker!
You cannot retrieve the device MAC address in web browser but you can get it from some platforms which allows you to do that right now:

  • LG NetCast
  • Samsung Orsay

On the other platforms I need to ckeck it out is it possible or not.
Do you want to get the MAC address on the android platform?

from qmlcore.

dseeker avatar dseeker commented on June 11, 2024

@comrat Yes from the browser I expect nothing to come as there is no access to that data.
But I imagine on TIzen and WebOS it would be possible with the cordova plugin, no? They have JS bridge library with the information. something like this

if (context.system.vendor == 'LG') webOS.service.request("luna://com.webos.service.connectionmanager", {
		    method: "getinfo",
		    parameters: {},
		    onSuccess: function (args) {
			console.log('success', args)
		//         mac = args.wiredInfo.macAddress;
		    },
		    onFailure: function (args) {
		        console.log('failure', args)
		    }
		}); 

Right now I'm looking for a way to get it in AndroidTV, but in general I want to know how to access this macAddress property using the library, I couldn't find any code examples.

from qmlcore.

comrat avatar comrat commented on June 11, 2024

@dseeker where did you find this method?
I only see the getStatusmethod https://webostv.developer.lge.com/api/webos-service-api/connection-manager/
and there is no MAC address

from qmlcore.

dseeker avatar dseeker commented on June 11, 2024

I honestly don't remember where I lifted from
https://www.webosose.org/docs/reference/ls2-api/com-webos-service-connectionmanager/
https://stackoverflow.com/a/42934118/845195

but that's something external to the Qmlcore framework, that I'm doing on the JS side.
I'm still wondering how do I access the Device.macAddress property on Qmlcore in AndroidTV device, is that currently possible?

from qmlcore.

comrat avatar comrat commented on June 11, 2024

I've tried this method on my WebOS and got an error

"Denied method call "getinfo" for category "/""

So I'm not sure this should work for WebOS.
For the androidtv we'll try to implement in the corresponded project https://github.com/pureqml/qmlcore-android

from qmlcore.

comrat avatar comrat commented on June 11, 2024

pureqml/qmlcore-android#11
create the corresponded issue for qmlcore-android
@dseeker FYI

from qmlcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.