SDK ไดรเวอร์สำหรับงานที่กำหนดเวลาไว้ - Android
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
นี่คือคำแนะนำเกี่ยวกับงานที่กำหนดเวลาไว้ ฉันแยกสิ่งเหล่านี้ออกจากกันด้วยเหตุผล 2 ข้อ
ซึ่งจะทำให้ผู้ใช้ "เลือกรุ่นของตน" และทำตามโมเดลนั้นได้ง่ายขึ้น
งานที่กำหนดเวลาไว้จะรองรับสถานการณ์ "ไคลเอ็นต์ที่เชื่อถือได้" ทั้งสำหรับ iOS และ Android แม้จะเป็นเอกสารใน Android เท่านั้น
ดูเหมือนว่าจะเป็นหัวข้อที่ต่างกันนอกเหนือจากเรื่องการตั้งค่า
ในภายหลัง เราสามารถเพิ่มหน้าเกริ่นนำที่ดีให้กับ SDK ของไดรเวอร์สำหรับแต่ละรุ่น เพื่อให้เหมาะกับกรณีการใช้งานแต่ละกรณีได้
บางครั้งทีมวิศวกรของที่นี่จะเผยแพร่ข้อมูล ในขณะที่ทีม LMFS-ey กับ ODRD-ey อัปเดตสมการเพียงฝั่งเดียวก็ง่ายขึ้น
หากเป็นอย่างอื่น โปรดระบุไดเรกทอรี "รวม" ของเนื้อหานี้ใน iOS (ใกล้กับหน้าโฮสต์) และไม่ใส่ไว้ในไดเรกทอรีรวมร่วม
อีกแนวคิดหนึ่งคือการแยกคำแนะนำ 2 ข้อที่นี่ คำแนะนำหนึ่งสำหรับการตั้งค่าและอีกคำแนะนำสำหรับการเริ่มต้นใช้งาน โดยการตั้งค่าจะรวม 3 หัวข้อแรกสำหรับแต่ละรูปแบบ
หัวข้อสำคัญสำหรับโมเดลนี้:
- ข้อกำหนดของระบบ
- กำหนดค่าโปรเจ็กต์
- การตรวจสอบสิทธิ์
- สร้างอินสแตนซ์ deliverydriverapi
- เหตุการณ์นักข่าวยานพาหนะ
- เปิดใช้การติดตามและอัปเดตตำแหน่ง
- อัปเดตข้อผิดพลาดของมาสก์
- สถานการณ์ที่เชื่อถือได้ (ดูเอกสาร Android แล้วลองสอบถามกับ David เพื่อดูว่าเราต้องจัดทำเอกสารสำหรับ iOS หรือไม่)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\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)"]]