ปรับปรุงคุณภาพของแอป: จากดี ดี ดีไปจนถึงดีที่สุด
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เอกสารนี้แสดงเส้นทางการพัฒนาแอปสุขภาพและการออกกำลังกายที่ดีที่สุดตั้งแต่จุดเริ่มต้นที่เป็นไปได้ไปจนถึงแอปที่ดีที่สุดในรุ่น ซึ่งออกแบบมาเพื่อช่วยให้คุณนึกถึง
การปรับขนาดแอปของคุณเมื่อเวลาผ่านไป และฟีเจอร์ที่จะนำไปใช้ แม้ว่าแอปสุขภาพและฟิตเนสทุกแอปจะแตกต่างกันไป แต่ลองพิจารณาคําแนะนําเหล่านี้เพื่อให้ได้แอปที่ดีที่สุด
แอปสุขภาพและการออกกำลังกายพื้นฐาน
แอปสุขภาพและการออกกำลังกายพื้นฐานจำเป็นต้องมีองค์ประกอบสำคัญบางอย่างเพื่อ
มอบประสบการณ์ขั้นพื้นฐานที่ยอดเยี่ยมแก่ผู้ใช้ องค์ประกอบหลักบางส่วน ได้แก่
- ขอเฉพาะการอนุญาตที่จำเป็นในการเติมเต็มประสบการณ์การใช้งานที่
ผู้ใช้ต้องการ
- เสนอเมตริกการติดตามที่ปรับแต่งได้และเข้าใจง่าย
- การนำเสนอการเรียกดูและการค้นพบเนื้อหาในแอป
- เสนอการควบคุมการออกกำลังกายในแอป
- หากติดตามเซสชันการออกกําลังกายหรืองานอื่นๆ ที่เกี่ยวข้องกับสุขภาพซึ่งทํางานต่อเนื่องเป็นเวลานาน ให้ใช้บริการที่ทำงานอยู่เบื้องหน้าและประกาศสิทธิ์ FOREGROUND_SERVICE_HEALTH ในไฟล์ Manifest
- การผสานรวมฟีเจอร์การช่วยเหลือพิเศษที่ใช้งานง่าย
แอปสุขภาพและการออกกำลังกายที่ดีขึ้น
แอปสุขภาพและการออกกำลังกายที่ดีจะเริ่มเพิ่มการเข้าถึงเมื่อผู้ใช้
ความก้าวหน้าทั้งทางร่างกายและจิตใจ
ระหว่างการเดินทางเพื่อสุขภาพ แอปที่ดีกว่า
ช่วยให้ผู้ใช้ลงทะเบียนโปรไฟล์ โดยใช้โปรไฟล์
และข้อมูลเข้าสู่ระบบของโซเชียลมีเดีย
และอีเมล
การใช้การปรับปรุงแบบองค์รวมมากขึ้นในแอปก็เป็นวิธีที่ดีในการเร่งการเติบโตของแอปด้วย ให้ถือว่าฟีเจอร์เหล่านี้จะช่วยยกระดับ
แอปของคุณ
- การผสานรวมแพลตฟอร์มที่ 2 เช่น Wear OS (โดยใช้บริการด้านสุขภาพใน Wear)
OS สำหรับการเก็บรวบรวมข้อมูล) ใช้บลูทูธพลังงานต่ำ (BLE) เพื่อส่งและรับข้อมูลจากอุปกรณ์ต่อพ่วง
- หากเชื่อมต่ออุปกรณ์ต่อพ่วง ให้ประหยัดการใช้แบตเตอรี่ หากคุณซิงค์ข้อมูลเป็นระยะๆ ให้ใช้บริการที่ทำงานอยู่เบื้องหน้าประเภท CONNECTED_DEVICE
- ใช้ Jetpack Glance เพื่อสร้างวิดเจ็ตแอปในอุปกรณ์เคลื่อนที่เพื่อให้ผู้ใช้
เพื่อติดตามความคืบหน้าได้
อย่างรวดเร็ว ลองใช้สีแบบไดนามิก
เพิ่มประสิทธิภาพสำหรับอุปกรณ์รูปแบบต่างๆ และใช้ประโยชน์จากการปักหมุดวิดเจ็ตในแอป
API เพื่อการค้นพบที่มากขึ้น
- หากรองรับ Wear OS ให้ระบุการ์ดหรือข้อมูลแทรกเพื่อเปิดใช้ประสบการณ์การใช้งานแบบดูข้อมูลได้อย่างรวดเร็วที่คล้ายกันในนาฬิกา
- การนำเสนอวิธีที่สร้างสรรค์ในการติดตามผู้ใช้อยู่เสมอ (เช่น การแจ้งเตือนและ
กระตุ้น) อย่าลืมทำตามแนวทางปฏิบัติแนะนำสำหรับการแจ้งเตือน ซึ่งรวมถึงการรอแสดงข้อความแจ้งการแจ้งเตือนจนกว่าผู้ใช้จะมีเวลาทำความคุ้นเคยกับแอป และการใช้การบริดจ์การแจ้งเตือนสำหรับโทรศัพท์และนาฬิกาที่จับคู่ไว้
- การปรับปรุงการช่วยเหลือพิเศษสำหรับทุกคน เช่น การเพิ่มคำบรรยายสำหรับวิดีโอ
เนื้อหาและการเพิ่มประสิทธิภาพสำหรับการช่วยเหลือพิเศษในแพลตฟอร์มรองต่างๆ เช่น
Wear OS
- การรองรับการเล่นเนื้อหาวิดีโอของแอปฟิตเนสบนอุปกรณ์ Cast
- การใช้ Google Play Billing เพื่อให้ผู้ใช้ซื้อการสมัครใช้บริการได้
แอปสุขภาพและการออกกำลังกายที่ดีที่สุด
แอปสุขภาพและการออกกำลังกายที่ดีที่สุดจะต่อยอดจากคําแนะนําก่อนหน้านี้เพื่อสร้างประสบการณ์การใช้งานหลายอุปกรณ์ที่ราบรื่นสําหรับผู้ใช้ ซึ่งอาจรวมถึงสิ่งต่อไปนี้
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Improve your app's quality: from good, to better, to best\n\nThis document charts the optimal progression of a health and fitness app from a\nlikely starting place to best-in-class. It's designed to help you think about\nscaling your app over time, and what features to implement. While every health\nand fitness app is different, consider these recommendations to achieve a\nbest-in-class app.\n\nBasic health and fitness app\n----------------------------\n\nThere are key elements that a basic health and fitness app requires in order to\nprovide a great foundational experience for users. Some of those key elements\ninclude doing the following:\n\n- Requesting only the necessary permissions to fulfill the experience that the user wants\n- Offering tracking metrics that are customizable and easy to understand\n- Offering in-app content browsing and discovery\n- Offering in-app exercise controls\n- If tracking an exercise session or other health-related long-running task, using a foreground service and declaring the [FOREGOUND_SERVICE_HEALTH](/about/versions/14/changes/fgs-types-required#health) permission in the manifest file.\n- Integrating easy-to-use, [accessibility features](/guide/topics/ui/accessibility)\n\nBetter health and fitness app\n-----------------------------\n\nA better health and fitness app will start to grow its reach, once a user has\nphysically and mentally made progress along their health journey. A better app\nalso allows a user to easily register for a profile with the use of existing\nsocial media credentials and their email.\n\nImplementing more holistic improvements into your app is also an excellent way\nto accelerate its growth. Consider these features as a way to further enhance\nyour app:\n\n- Integrating second surfaces, such as Wear OS (using [Health Services on Wear\n OS](/training/wearables/health-services) for data collection). Use Bluetooth Low Energy (BLE) to send and receive data to and from peripheral devices\n- If connecting peripheral devices, preserve battery usage. If you are periodically syncing data, use the [CONNECTED_DEVICE](/about/versions/14/changes/fgs-types-required#connected-device) foreground service type.\n- Using [Jetpack Glance](/jetpack/compose/glance) to create app [widgets](/develop/ui/views/appwidgets/overview) on mobile to enable users to track progress in a glanceable way. Consider using dynamic color, optimizing across form factors, and taking advantage of in-app widget pinning APIs for better discoverability.\n- If supporting Wear OS, supplying a [tile](/training/wearables/tiles) or [complication](/training/wearables/tiles/complications) to enable similar glanceable experiences on the watch.\n- Offering creative ways to keep a user on track (such as notifications and nudges). Be sure to follow best practices for notifications, including [waiting to show the notification prompt](/develop/ui/views/notifications/notification-permission#best-practices) until the user has had time to familiarize themselves with the app, and using [notification bridging](/training/wearables/notifications/bridger) for paired phones and watches.\n- Improving [accessibility](/guide/topics/ui/accessibility) for all, such as adding [subtitles](/guide/topics/media/exoplayer/media-items#sideloading-subtitle) for video content and optimizing for accessibility on any secondary surfaces, such as [Wear OS](/training/wearables/accessibility).\n- Supporting playback to [Cast](https://developers.google.com/cast/docs/developers) devices for your fitness app's video content\n- Using [Google Play Billing](/google/play/billing) to let users purchase subscriptions\n\nBest-in-class health and fitness app\n------------------------------------\n\nA best-in-class health and fitness app builds on the previous recommendations to\ncreate a seamless multi-device experience for users, which may include:\n\n- Enabling easy sharing of workouts and accomplishments with [Sharesheet](/training/sharing/send)\n- Optimizing for foldables by supporting the [`HALF_OPENED`](/develop/ui/compose/layouts/adaptive/foldables/learn-about-foldables#foldable_postures) [state](/develop/ui/compose/layouts/adaptive/foldables/learn-about-foldables#foldable_postures)\n- Testing and refining voice assistant integrations on mobile, such as with [Google Assistant](/media/implement/assistant)\n- Supporting [Better Together](https://www.android.com/better-together) use cases, such as [Nearby\n Connections](https://developers.google.com/nearby/connections/overview)\n- Investing in seamless identity across surfaces such as [passkeys](/training/sign-in/passkeys), [One\n Tap](https://developers.google.com/identity/one-tap/android/overview), and [account linking](https://developers.google.com/identity/account-linking)\n- Offering [frictionless subscriptions](https://www.youtube.com/watch?v=ARuf97ncE4w)"]]