SDK Driver untuk tugas terjadwal - android
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Ini adalah panduan untuk tugas terjadwal. Saya memisahkannya karena dua alasan:
Akan lebih mudah bagi pengguna untuk "memilih modelnya" dan tetap menggunakannya.
Tugas terjadwal mendukung skenario "klien tepercaya" untuk iOS dan Android, meskipun hanya didokumentasikan di Android.
Sepertinya ada kumpulan topik yang berbeda, di luar penyiapan
Nantinya kita dapat menambahkan halaman pengantar yang bagus untuk Driver SDK untuk setiap model, yang dibuat khusus untuk setiap kasus penggunaan.
Terkadang, tim engineering di sini hanya memublikasikan ke salah satunya, jadi
akan lebih memudahkan orang LMFS-ey vs ODRD-ey untuk memperbarui sisi persamaan
mereka saja.
Jika kita menyertakannya, mari kita masukkan direktori include untuk konten ini
di ios (lebih dekat dengan halaman host) dan bukan di direktori include global.
Ide lainnya adalah memisahkan 2 panduan di sini, satu panduan untuk penyiapan dan panduan lainnya untuk memulai, dengan penyiapan mencakup tiga topik pertama untuk setiap model.
Topik utama untuk model ini:
- persyaratan sistem
- konfigurasi project
- auth
- membuat instance deliverydriverapi
- acara reporter kendaraan
- aktifkan pelacakan dan pembaruan lokasi
- error update mask
- skenario tepercaya (lihat dokumen Android dan mari kita periksa dengan David untuk melihat
apakah kita perlu mendokumentasikan untuk iOS atau tidak)
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[null,null,["Terakhir diperbarui pada 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)"]]