简体   繁体   English

是否可以在 React-Native(iOS&Android) 中获得自己设备的 BLE Mac?

[英]Is it possible to get BLE Mac of own device in React-Native(iOS&Android)?

I need to get my own device's MAC address which I thought should be really simple but after some research it seems likely impossible.我需要获取自己设备的 MAC 地址,我认为这应该非常简单,但经过一番研究,这似乎是不可能的。

Any one had any experience on this before?有没有人有过这方面的经验? I need to get the BLE MAC on both OS.我需要在两个操作系统上获取 BLE MAC。

You cannot get your own MAC address on iOS.您无法在 iOS 上获得自己的 MAC 地址。 It has never been possible to get the Bluetooth MAC.永远无法获得蓝牙 MAC。 In the past developers used the WiFi MAC address as a unique device identifier.过去,开发人员使用 WiFi MAC 地址作为唯一的设备标识符。 Apple has now ensured that MAC addresses are inaccessible as a privacy protection. Apple 现在已确保 MAC 地址不可访问以作为隐私保护。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM