앱에 액세스 권한이 있는 데이터 유형은 승인 범위에 해당합니다. 이러한 권한을 요청하려면 FitnessOptions 인스턴스에서 앱에 액세스해야 하는 데이터 유형을 추가해야 합니다. 앱에서 Google 피트니스 데이터 유형을 사용하도록 요청하면 Android SDK는 자동으로 해당 유형이 속한 범위를 확인하고 사용자에게 해당 범위에 대한 승인을 요청합니다.
API 클라이언트 만들기
API 클라이언트를 만들고 데이터를 쓰거나 읽기 위해 앱에서 액세스해야 하는 데이터 유형을 추가합니다. 다음 엔드포인트를 사용할 수 있습니다.
SensorsClient: 로컬 기기 및 호환 기기의 하드웨어 센서에서 다양한 건강 및 웰빙 데이터 소스에 액세스합니다.
[null,null,["최종 업데이트: 2025-03-11(UTC)"],[[["This guide provides instructions for Android developers to integrate Google Fit into their applications."],["It outlines the necessary setup steps, including obtaining a Google account, setting up Google Play services, and acquiring OAuth 2.0 client ID."],["Developers are guided through the process of creating an API client and implementing data access functionalities."],["Before publishing, developers need to apply for verification to ensure data security and compliance."],["The guide also explains the authorization flow users will experience when granting data access permissions to the app."]]],[]]