简体   繁体   English

禁用Objective-C的iOS BLE配对消息

[英]Objective-C Disabled iOS BLE Pairing Message

Is there anyway to disable the pairing message in iOS for a bluetooth device? 无论如何,有没有在iOS中为蓝牙设备禁用配对消息? The device I'm connecting to does not require any security and there is no pairing mechanism in place so having the message pop up is not needed. 我要连接的设备不需要任何安全性,并且没有配对机制,因此不需要弹出消息。 Any suggestions? 有什么建议么?

To confirm Paulw11's comment above a Pairing prompt will be displayed in iOS when a device is connected and any type of encryption is requested during the connection or encryption is required when writing to a characteristic. 为了确认Paulw11在上方的注释,当设备连接并且在连接期间请求任何类型的加密或在写入特征时需要加密时,将会在iOS中显示配对提示。

If the user clicks "Cancel" the encryption will not be enabled for the connection, but the connection will not be terminated. 如果用户单击“取消”,则不会为连接启用加密,但是不会终止连接。 If you click "Pair" encryption will be enabled and the connection will also persist. 如果单击“对”,将启用加密,连接也将持续。

There is no way to listen or interact with the pairing prompt via the base iOS configuration through the CoreBluetooth Framework. 无法通过CoreBluetooth框架通过基本的iOS配置来监听配对提示或与之交互。 I've talked with Apple about this and done lots of digging. 我已经与Apple讨论过这个问题,并做了很多挖掘工作。 There may be a way to do this through the MFI program, but obviously we can't talk about that. 通过MFI程序可能有实现此目的的方法,但是显然我们不能谈论它。

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

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