用於排定工作的驅動程式 SDK - Android
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本指南提供已排定的工作。我分開保留這些 Cookie 的原因有兩個:
使用者容易「選擇自己的型號」並持續使用。
排程工作支援適用於 iOS 和 Android 的「信任的用戶端」情境,但只會記錄在 Android 上。
似乎不是設定不同的主題
我們之後可以為每個模型新增專屬的驅動程式簡介頁面,並逐一瞭解應用實例。
這裡的工程團隊有時只會發布至其中一個,因此讓 LMFS-ey 和 ODRD 的團隊成員更容易更新單獨的方程式。
如果確實包含,請將此內容的 include 目錄置於「在」iOS 附近 (靠近代管網頁),而不要放在全域包含目錄。
另一種做法是按照 2 份指南分成 2 份設定,另 1 個用於開始設定,另一個則包含每個模型的前三個主題。
這個模型的重要主題:
- 系統要求
- 設定專案
- auth
- 建立 Deliverydriverapi 執行個體
- 車輛記者活動
- 啟用位置追蹤與更新
- 更新遮罩錯誤
- 信任的情境 (請參閱 Android 文件,並請 David 確認是否需要記錄 iOS 系統)
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間: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)"]]