Get add MAC from the device ionic3

Hey guy’s im in the IPTV business and i want to make an app that would get the MAC from the device and store it on my servers.
the problem is i get always 02:00:00:00 as a result , wich is false , so there is any one can help me ?

Try it: https://www.npmjs.com/package/getmac

Doesn’t the page you linked say:

This library will not run in web browsers / on the client-side / in webpack / in browserify / in angular / in react / in jQuery / in HTML. It will only run on node.js environments, which the web browser is not.

That sounds dr-seuss-green-eggs-and-ham-level clear that it won’t work for any Ionic app.

See: https://help.fing.io/knowledge-base/cant-fing-see-mac-addresses-ios-11/

This library will not run in web browsers / on the client-side / in webpack / in browserify / in angular / in react / in jQuery / in HTML. It will only run on node.js environments, which the web browser is not.
i think this is a problem , in my case i am working with only client-side

did you found another solution ?

1 Like