2025년 6월 30일 이후에는 Google 피트니스 REST API를 포함한 Google 피트니스 API를 더 이상 사용할 수 없습니다. 2024년 5월 1일부터 개발자는 이 API를 사용하기 위해 가입할 수 없습니다.
이전할 API 또는 플랫폼에 관한 안내는 헬스 커넥트 이전 가이드를 참고하세요. 헬스 커넥트와 Google 피트니스 API 및 Fitbit Web API를 비교하려면 헬스 커넥트 비교 가이드를 참고하세요.
헬스 커넥트 및 API와 통합하는 방법을 자세히 알아보세요.
Google 피트니스와 연결 해제
Google 피트니스와의 연결을 해제하면 앱에 부여된 모든 OAuth 권한이 취소되고 앱에서 이루어진 모든 기록 구독 및 센서 등록이 삭제됩니다.
사용자에게 앱 설정에서 Google 피트니스에서 연결 해제 옵션을 제공해야 합니다. 사용자가 이 옵션을 선택하면 ConfigClient.disableFit
메서드를 호출하여 Google 피트니스를 사용 중지할 수 있습니다.
Fitness.getConfigClient(this, GoogleSignIn.getAccountForExtension(this, fitnessOptions))
.disableFit()
.addOnSuccessListener {
Log.i(TAG,"Disabled Google Fit")
}
.addOnFailureListener { e ->
Log.w(TAG,"There was an error disabling Google Fit", e)
}
Fitness.getConfigClient(this, GoogleSignIn.getAccountForExtension(this, fitnessOptions))
.disableFit()
.addOnSuccessListener(unused ->
Log.i(TAG, "Disabled Google Fit"))
.addOnFailureListener(e ->
Log.w(TAG, "There was an error disabling Google Fit", e));
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-06-25(UTC)
[null,null,["최종 업데이트: 2024-06-25(UTC)"],[[["Disconnecting from Google Fit removes all app permissions, data recording subscriptions, and sensor registrations."],["Apps need to provide a \"Disconnect from Google Fit\" option, triggering the `ConfigClient.disableFit()` method for disconnection."],["`ConfigClient.disableFit()` revokes Google Fit access and stops data collection by the app."]]],[]]