【发布时间】:2019-12-13 10:08:25
【问题描述】:
我如何通过 nativescript 获取 mac 地址 用于 android 设备?
我在这个问题Get mac address and ip in Nativescript 中尝试过获取mac
另外,我试过了:
let mac = java.net.NetworkInterface.getHardwareAddress();
我得到错误
TypeError: test.getHardwareAddress is not a function
但是,如果我在日志中打印console.log(java.net.NetworkInterface),我们将看到getHardwareAddress
谢谢你:)
【问题讨论】:
标签: nativescript