Google Fit 遷移作業常見問題
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這項遷移作業會影響哪些使用者?
所有使用 Google Fit API 和 Google Fit REST API 的開發人員。
異動內容
- Google Fit API (包括 Google Fit REST API) 將於 2026 年淘汰。
- 自 2024 年 5 月 1 日起,開發人員就無法註冊使用這些 API。
如何開始使用?
如要為使用者提供順暢的轉換體驗,請參閱遷移指南。
在遷移期間,我可以如何使用 Google Fit API?
如果您是使用 Android 版 Google Fit API 的開發人員,建議您立即改用 Android Health API,確保使用者不會遭遇服務中斷。Android Health API 比 Fit API 提供更多優勢,包括:
- 記錄步數:Android Health 會提供行動版 Recording API,無須 Google 使用者帳戶,也不需要您要求存取 API 範圍。這也是擷取步數資料的省電方式。行動裝置上的 Recording API 會在步數達到一定程度時啟動。
- Health Connect:整合 Health Connect 後,您的 Android 應用程式就能透過單一連線,存取日益壯大的應用程式生態系統資料。此外,資料會儲存在裝置上,讓使用者能完全控管自己的資料。
遷移期過後,Google Fit API 會受到什麼影響?
Google Fit API 將無法再供使用。在遷移期結束後,您應該已遷移至 Health Connect 或其他 Android Health API。
遷移期過後,Google Fit REST API 會受到什麼影響?
目前沒有 Fit REST API 的替代方案。
我們建議 Fit REST API 使用者改用 Android Health API。請查看哪一個最符合您的需求和使用者:
- Health Connect:Health Connect 可將 Android 裝置和應用程式組合的資料整合到一個生態系統中,為 Android 開發人員提供通用的健康平台。Health Connect 提供 API,可用於讀取及寫入使用者的健康資料,並在儲存時標準化資料結構定義,以及集中管理權限。
- Fitbit Web API:Fitbit Web API 是能與 Fitbit 生態系統整合的平台通用介面。使用者可以直接在雲端儲存、共用及管理自己的資料。在 Fitbit Web API 中,使用者資料會與 Fitbit 帳戶連結,而不是其裝置。這表示 Fitbit Web API 以帳戶為中心,而非以裝置為中心。
詳情請參閱 Health Connect 比較指南。
如何取得說明?
如果您發現錯誤或需要遷移作業相關協助,請使用問題追蹤工具提交意見回饋。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[],[],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)."]]