简体   繁体   中英

What Does “Required Background Modes” In Xamarin.iOS Actually Mean?

I have been working with Xamarin.Forms based app that uses Audio, Location, Bluetooth LE, and other Background Processing both on Android and iOS. For iOS, I have to set the Required Background Modes in Info.plist file. Right now, I have App plays audio or streams audio/video using AirPlay , App registers for location updates , and App communicates using CoreBluetooth enabled but the app kills itself after sometime while receiving data from a Bluetooth LE sensor.

Looking online, I found almost no explanation of all the following background modes, even on Microsoft docs

Could someone please explain what does each background mode enable and when should we use which one. Thank you!

在此处输入图像描述

Open info.plist with iOS Manifest Editor , you could find the following option in Background Modes.

在此处输入图像描述

And i think the explanation is clear in official docs.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM