What is the difference between the dataSync foreground service type and User-Initiated Data Transfer?
通俗解读
对于由用户明确请求发起的网络数据传输,Google 建议使用用户发起的数据传输作业,而不是 dataSync 前台服务类型。
- 用户发起的数据传输作业旨在简化网络传输,并提供约束跟踪和自动唤醒锁管理。
- dataSync 前台服务类型可涵盖本地或网络数据传输,并可包括在设备上本地处理数据。
- 该建议适用于响应用户明确请求、通过网络(如 Wi-Fi、移动网络或蓝牙)进行的传输。
官方原文摘录
User-initiated data transfer jobs are designed to simplify over-the-network data transfers. They have constraint tracking and automatically manage wakelocks. The dataSync foreground service type can include transferring data locally or over a network, and may include processing data locally on device. If your use case …
阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规
开发者关于此条款的案例
暂无案例。