iphone - 远程唤醒应用程序,比如从蓝牙设备

标签 iphone objective-c ios ipad bluetooth

  1. 即使我们的应用程序处于后台,我们能否从蓝牙设备接收任何通知?
  2. 是否可以通过从蓝牙设备发送一些命令来启动 iPhone 应用程序?
  3. 是否有可能以类似的方式唤醒在后台运行的应用程序?

已更新

Apple 在 iOS App Programming Guide

App States and Multitasking 部分中这样说

Communicating with an External Accessory

Apps that work with external accessories can ask to be woken up if the accessory delivers an update when the app is suspended. This support is important for some types of accessories that deliver data at regular intervals, such as heart-rate monitors. When an app includes the UIBackgroundModes key with the external-accessory value in its Info.plist file, the external accessory framework keeps open any active sessions for the corresponding accessories. (In iOS 4 and earlier, these sessions are closed automatically when the app is suspended.) In addition, new data arriving from the accessory causes the system to wake up the app to process that data. The system also wakes up the app to process accessory connection and disconnection notifications.

这是什么意思?
我们可以使用远程控制事件来实现我上面所问的ie 从后台唤醒应用程序吗?还是有其他方法可以做到这一点?

最佳答案

  1. 不,这是不可能的
  2. 不,这是不可能的
  3. 不,这是不可能的

除非你越狱设备。

编辑后更新: 不,这是不可能的。

正如评论中所指出的,这正在偏离 MFi 领域。我建议您多搜索一下文档。

关于iphone - 远程唤醒应用程序,比如从蓝牙设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9429115/

相关文章:

ios - 在 iOS 中更新 SQlite 版本

iphone - 使用 stringWithContentsOfURL 缓存将 url 内容写入字符串

objective-c - 函数调用后 XCode 3.2.6 堆栈损坏

iphone - MPMoviePlayerController 自定义控件

ios - UNIRest:在异步 HTTP 响应上切换到新的 ViewController

iOS 11 CPU 节流和空闲计时器

objective-c - UILabel 自动换行/字符换行

ios - UICollectionView 动态标题大小

iphone - 相同的自动布局约束在纵向和横向上表现不同

iphone - subarrayWithRange 具有大数据