iphone:gameKit 无法连接到非 Apple 设备?
我正在开发一个 iphone/ipad 应用程序,以使用 GameKit 通过蓝牙与其他设备连接,它可以在 iphone/ipad/iPod 上正常工作,但不能与其他平台设备(如 Android 或其他蓝牙设备)配合使用?
是否有任何其他可用的框架或代码可以通过蓝牙连接到其他设备。
I am developing an iphone/ipad app to connect with other devices through Bluetooth using GameKit, it works fine with iphone/ipad/iPod but it does not work with other platform devices like android or other Bluetooth devices?
Is there any other framework or code available which could connect to other devices through bluetooth.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
否 - Gamekit 仅适用于 iOS 设备
如果您想连接到其他设备,那么它应该通过 iOS 设备和其他设备都支持的标准蓝牙配置文件
如果您正在开发需要连接到 iOS 设备并希望使用您自己的通信机制的配件,那么您需要加入 Apple MFi 计划并根据 MFi 计划开发配件。
No - Gamekit is only for iOS devices
If you want to connect to other devices then it should be over standard Bluetooth profiles which both the iOS device and the other device supports
If you are developing accessories that need to connect to iOS devices and want to use your own communication mechanism then you need to join the Apple MFi program and develop accessories as per the MFi program.
您可以使用私有 BluetoothManager 类通过蓝牙连接到非 Apple 设备,但这不是 App Store 合法的,会导致应用程序拒绝。
没有 App Store 允许的选项可用于使用蓝牙与 Android 等其他平台进行通信。如果您使用 GameKit,他们就可以发现您的 iPhone - 仅此而已。你无法与他们联系,无法与他们沟通。
You can use private BluetoothManager class to connect through Bluetooth to non-Apple devices, but this is not App Store-legal and will cause app rejection.
There are no App Store-permitted options for communicating using Bluetooth with other platforms like Android. They can discover your iPhone if you're using GameKit - and that's all. You can't connect to them, you can't communicate with them.