Is there an easy way to obtain the MAC address (or alternatively the ESN) of a device from App Studio code? I was hoping that SYSINFO() might be the ticket, but it appears that is not an option.
The only way to do this is by compiling your app as a native app using VoltBuilder.
You can then use the cordova-plugin-device plugin to get at some device information.
Look at the notes for iOS carefully. Apple does not want you to do anything which would identify the device using a hardware id - and will reject your app if it does.
Good to know - I think for my purposes I will rethink my approach and move in another direction. Thanks.
If your need is more towards uniquely identifying a browser/device, you can try another approach:
- GitHub - fingerprintjs/fingerprintjs: Browser fingerprinting library. Compared to Fingerprint Pro has limited accuracy (40 - 60%), but is fully open source.
- GitHub - LukasDrgon/fingerprintjs2: Modern & flexible browser fingerprinting library