用于计划任务的驱动程序 SDK - Android
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南将介绍计划任务。我将它们分开保存是出于两个原因:
“选择他们的模型”并坚持下去会更方便用户。
计划任务支持 iOS 和 Android 的“可信客户端”场景,但仅记录在 Android 上。
除了设置之外,似乎还有一组不同的主题
我们稍后可以针对每种使用场景为每种型号的驱动程序 SDK 添加一个不错的简介页面。
这里的工程团队有时只会将应用发布到其中一个帐号,以便使用 LMFS 和 ODRD 的用户都能更轻松地只更新他们一端。
如果我们确实包含 include 目录,请将此内容的 include 目录放在 ios 下(更靠近主机页面),而不是放在全局 include 目录中。
另一种方法是在这里拆分 2 个指南,一个用于设置,另一个用于入门,其中设置包含每个模型的前三个主题。
此模型的关键主题如下:
- 系统要求
- 配置项目
- auth
- 创建 deliverydriverapi 实例
- 车辆报告者事件
- 启用位置跟踪和更新
- 更新掩码错误
- 可信场景(请参阅 Android 文档,让 David 看看我们是否需要针对 iOS 进行记录)
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis guide provides instructions for using scheduled tasks with the Driver SDKs, focusing on setup and ongoing operations.\u003c/p\u003e\n"],["\u003cp\u003eScheduled tasks allow for a "trusted client" setup on both iOS and Android, simplifying authentication in certain scenarios.\u003c/p\u003e\n"],["\u003cp\u003eKey topics covered include system requirements, project configuration, authentication, utilizing the Delivery Driver API, vehicle reporter events, enabling location tracking, handling update mask errors, and implementing trusted client scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe guide is structured to allow developers to easily choose and focus on the model relevant to their specific use case, with potential future expansion to include bespoke intro pages for each Driver SDK model.\u003c/p\u003e\n"],["\u003cp\u003eMaintaining separate guides for LMFS and ODRD teams simplifies content updates and aligns with their distinct workflows.\u003c/p\u003e\n"]]],[],null,["# Driver SDK for scheduled tasks - android\n\nThis is the guide for scheduled tasks. I kept these separate for two reasons:\n\n1. It's easier for a user to \"choose their model\" and stick with it.\n\n2. Scheduled tasks supports a \"trusted client\" scenario for both iOS and Android\n although it's only documented on Android.\n\n3. It seems like a different set of topics, beyond setup\n\n4. We can later on add a nice intro page for the Driver SDKs for each model,\n bespoke to each use case.\n\n5. The engineering teams here sometimes only publish to one or the other, so\n that'll make it easier for LMFS-ey vs ODRD-ey people to update just their side\n of the equation.\n\nIf we do includes, let's please put the includes directory for this content\n*under* ios (closer to the host page) and not in the global includes directory.\n\nAnother idea is to split out 2 guides here one for setup and the other for\ngetting started, where setup includes the first three topics for each model.\n\nKey topics for this model:\n\n- system reqs\n- configure project\n- auth\n- create deliverydriverapi instance\n- vehicle reporter events\n- enable location tracking and updates\n- update mask errors\n- trusted scenarios (see android doc and let's check with David to see if we need to document for iOS or not)"]]