Is there an API to get the Device ID or MAC Address #10156
-
is there a way to get the device unique identifier or its mac address? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
"get device MAC address" is something like oxymoron. You cannot get such address, as device hasn't such address. Network interface has. And device have many network interfaces: WiFi, Bluetooth, WAN (cellular), Ethernet in laptop or desktop, Ethernet in docking station, or in USB-C hub... |
Beta Was this translation helpful? Give feedback.
-
Ok, so you want MAC address of one of these network interfaces that can be used to access Internet :) Yes, you have to use your own ID. Simply because e.g. Windows can create random MAC address for every connection by WiFi («To enable MAC randomization in Windows 10, you need to do the following. Go to Network & Internet -> WiFi. Under the WiFi adapter for which you wish to enable this, click the Advanced options link: Turn on the option called "Random Hardware Addresses" and you are done: Set it to "on" or "change daily"») |
Beta Was this translation helpful? Give feedback.
-
Most devices treat device identification as a privacy invading API, which means that it may be obfuscated or changed between reinstallations, depending on what the user asks. Uno does not implement GetSystemIdForPublisher, though, which could be used to implement such a feature on platforms supporting a similar feature. If you're up for it, we're looking for contributors. Depending on platforms, you can use native APIs to get advertisement identifiers (iOS/Android), but it won't be a good way to lock down your app for licensing, in the same way using the MAC address can be changed by the user. If you aim at mobile platforms (iOS/Android), it would be best using the platform's Store APIs for in-app purchases. For the other platforms, like WebAssembly, it's somehow more difficult or easily circumventable. |
Beta Was this translation helpful? Give feedback.
Most devices treat device identification as a privacy invading API, which means that it may be obfuscated or changed between reinstallations, depending on what the user asks. Uno does not implement GetSystemIdForPublisher, though, which could be used to implement such a feature on platforms supporting a similar feature. If you're up for it, we're looking for contributors.
Depending on platforms, you can use native APIs to get advertisement identifiers (iOS/Android), but it won't be a good way to lock down your app for licensing, in the same way using the MAC address can be changed by the user.
If you aim at mobile platforms (iOS/Android), it would be best using the platform's Store APIs f…