Communicate with BTLE device from backgrounded iOS app

前端 未结 2 1041
旧巷少年郎
旧巷少年郎 2021-02-06 18:11

How can one communicate with BTLE enabled devices in the background of iOS 5?

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 18:34

    I had the same question (issue) last week and someone gave me the answer. It is possible, and to do so, you need to add the following setting to you info.plist file:

    UIBackgroundModes (or Required background modes) -> "bluetooth-central"

提交回复
热议问题