iOS进入后台后持续运行

2020-03-05  本文已影响0人  若风_412d

参考:

iOS后台运行180s

https://www.jianshu.com/p/47ff7c239ba2

iOS蓝牙 音频等后台运行代理能够运行

原理:

https://www.jianshu.com/p/864dba21dbaa

https://www.jianshu.com/p/987d45d0d892

plist 表

http://www.dxjia.cn/2016/05/26/ios-background-executions/

http://www.cocoachina.com/articles/17611

由于版本变化

蓝牙后台运行:

plist文件


截屏2020-03-05下午1.35.49.png

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>bluetooth-peripheral</string>
<string>bluetooth-central</string>
</array>
</plist>

Required background modes
App communicates using CoreBluetooth
App shares data using CoreBluetooth

或者 截屏2020-03-13下午1.43.16.png
上一篇 下一篇

猜你喜欢

热点阅读