Câu hỏi thường gặp về việc di chuyển dữ liệu trên Google Fit
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Quá trình di chuyển này ảnh hưởng đến những ai?
Tất cả nhà phát triển đang sử dụng API Google Fit và API Google Fit REST.
Điều gì sẽ thay đổi?
- Các API của Google Fit, bao gồm cả API Google Fit REST, sẽ ngừng hoạt động vào năm 2026.
- Kể từ ngày 1 tháng 5 năm 2024, nhà phát triển không thể đăng ký sử dụng các API này.
Làm cách nào để bắt đầu?
Để giúp người dùng chuyển đổi suôn sẻ, hãy xem Hướng dẫn di chuyển.
Tôi có thể làm gì với các API Google Fit trong thời gian di chuyển?
Nếu là nhà phát triển sử dụng API Google Fit cho Android, bạn nên di chuyển sang API Android Health ngay để đảm bảo dịch vụ cho người dùng không bị gián đoạn.
API Android Health có một số ưu điểm so với API Fit, bao gồm:
- Ghi lại số bước: Android Health sẽ cung cấp Recording API trên thiết bị di động. API này không yêu cầu tài khoản người dùng Google hoặc bạn không cần yêu cầu quyền truy cập vào các phạm vi API. Đây cũng là cách tiết kiệm pin hơn để truy xuất dữ liệu số bước. Recording API trên thiết bị di động được ra mắt với tính năng phát hiện số bước chân.
- Health Connect: Bằng cách tích hợp với Health Connect, ứng dụng Android của bạn có thể truy cập vào dữ liệu từ một hệ sinh thái ứng dụng ngày càng phát triển chỉ bằng một kết nối. Ngoài ra, dữ liệu được lưu trữ trên thiết bị, cho phép người dùng kiểm soát toàn bộ dữ liệu của họ.
Điều gì sẽ xảy ra với các API Google Fit sau giai đoạn di chuyển?
Bạn sẽ không thể sử dụng các API của Google Fit nữa. Sau khoảng thời gian di chuyển, bạn phải di chuyển sang Health Connect hoặc các API Android Health khác.
Điều gì sẽ xảy ra với API Google Fit REST sau giai đoạn di chuyển?
Không có giải pháp thay thế cho API Fit REST.
Người dùng API Fit REST nên chuyển sang API Android Health. Hãy xem loại nào phù hợp nhất với nhu cầu và người dùng của bạn:
- Health Connect: Health Connect hợp nhất dữ liệu trên danh mục thiết bị và ứng dụng của Android vào một hệ sinh thái, cung cấp một nền tảng sức khoẻ chung cho các nhà phát triển Android. Health Connect cung cấp một API để đọc và ghi dữ liệu sức khoẻ của người dùng, chuẩn hoá giản đồ dữ liệu khi lưu trữ và tập trung kiểm soát quyền.
- API Fitbit Web: API Fitbit Web là giao diện không phân biệt nền tảng để tích hợp với hệ sinh thái Fitbit. Dịch vụ này cho phép người dùng lưu trữ, chia sẻ và quản lý dữ liệu của họ ngay trên đám mây. Trong API Fitbit Web, dữ liệu của người dùng được liên kết với tài khoản Fitbit của họ thay vì thiết bị.
Tức là API Fitbit Web tập trung vào tài khoản thay vì thiết bị.
Hãy xem hướng dẫn so sánh Health Connect để biết thêm thông tin chi tiết.
Làm cách nào để được trợ giúp?
Nếu bạn phát hiện lỗi hoặc cần được trợ giúp về việc di chuyển, hãy gửi ý kiến phản hồi bằng cách sử dụng công cụ theo dõi lỗi của chúng tôi.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# Google Fit Migration FAQ\n\nWho does this migration impact?\n-------------------------------\n\nAll developers who are using the Google Fit APIs and Google Fit REST APIs.\n\nWhat's changing?\n----------------\n\n- The Google Fit APIs, including the Google Fit REST API, will be deprecated in 2026.\n- Developers cannot sign up to use these APIs as of May 1, 2024.\n\nHow do I get started?\n---------------------\n\nTo provide a smooth transition for your users, review the\n[Migration guide](/guide/health-and-fitness/health-connect/migrate/migration-guide).\n\nWhat can I do with my Google Fit APIs during the migration period?\n------------------------------------------------------------------\n\nIf you are a developer using Google Fit APIs for Android, we recommend migrating\nto Android Health APIs now to ensure uninterrupted service for your users.\nAndroid Health APIs offer several advantages over the Fit APIs, including:\n\n- **Recording steps** : Android Health will provide the [Recording API on mobile](/health-and-fitness/guides/recording-api), which doesn't require a Google user account or the need for you to request access to API scopes. It's also a more battery-efficient way to retrieve step count data. The Recording API on Mobile is launched with steps.\n- **Health Connect** : By integrating with [Health Connect](/health-and-fitness/guides/health-connect), your Android app can access data from a growing ecosystem of apps with just one connection. Plus, data is stored on-device, allowing the user to be in full control of their data.\n\nWhat will happen to the Google Fit APIs after the migration period?\n-------------------------------------------------------------------\n\nGoogle Fit APIs will no longer be available for use. After the migration\nperiod, you should have already [migrated to Health Connect](/guide/health-and-fitness/health-connect/migrate/migration-guide) or\nother Android Health APIs.\n\nWhat will happen to the Google Fit REST APIs after the migration period?\n------------------------------------------------------------------------\n\nThere is no alternative to the Fit REST API.\n\nWe encourage Fit REST API users to migrate to the Android Health APIs. See\nwhich one best fits your needs and users:\n\n- **Health Connect**: Health Connect unifies data across Android's portfolio of devices and apps into an ecosystem, providing a common health platform for Android developers. Health Connect provides an API for reading and writing the user's health data, standardizes the data schema upon storage, and centralizes permissions control.\n- **Fitbit Web API**: The Fitbit Web API is a platform-agnostic interface to integrate with the Fitbit ecosystem. It gives users the ability to store, share, and manage their data directly in the cloud. In the Fitbit Web API, the user's data is tied to their Fitbit account instead of their device. This means the Fitbit Web API is account-centric instead of device-centric.\n\nCheck out the [Health Connect comparison guide](/health-and-fitness/guides/health-connect/migrate/comparison-guide) for more\ndetails.\n\nHow do I get help?\n------------------\n\nIf you find a bug or need help with the migration, submit your feedback using\nour [issue tracker](https://issuetracker.google.com/issues/new?component=1676744&template=2072671)."]]