XBackgroundManager
描述
利用 CLLocation 定位实现 App 进入后台后长久存活
必要配置
******************* XBackgroundManager *******************
请检查 info 中配置
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>AlwaysAndWhenInUseUsage描述</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>InUseUsage描述</string>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>location</string>
</array>
**********************************************************
示例
要运行示例项目,首先克隆仓库,然后在示例目录中运行 pod install
。
要求
安装
XBackgroundManager可通过CocoaPods获取。要安装它,只需将以下行添加到Podfile文件中
pod 'XBackgroundManager'
作者
dte2mdj, [email protected]
许可证
XBackgroundManager遵循MIT许可证。有关更多信息,请参阅LICENSE文件。