如何以编程方式获取iPhone的蓝牙MAC地址? [英] How can I programmatically get the Bluetooth MAC address of an iPhone?

查看:352
本文介绍了如何以编程方式获取iPhone的蓝牙MAC地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对iPhone进行一些接近检测,但我需要以编程方式获取蓝牙 MAC地址。有谁知道怎么做?

I'm trying to do some proximity detection of iPhones but I need to get their Bluetooth MAC address programmatically. Does anyone knows how ?

我认为蓝牙已激活但没有设备与iPhone配对。

I assume Bluetooth is activated but no device is paired with the iPhone.

推荐答案

没有公共API来获取此信息。

There is no public API to get this information.

如果这是内部或越狱应用程序,您可以获得<的值code> kLockdownBluetoothAddressKey 密钥通过 liblockdown.dylib

If this is an internal or jailbreak application you can get the value of the kLockdownBluetoothAddressKey key via liblockdown.dylib

这篇关于如何以编程方式获取iPhone的蓝牙MAC地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆