Google 피트니스에서 연결을 해제하면 앱에 부여된 모든 OAuth 권한이 취소되고 앱에서 이루어진 모든 녹음 구독 및 센서 등록이 삭제됩니다.
사용자에게 Google 피트니스 연결 해제 옵션을 제공해야 합니다.
확인할 수 있습니다. 사용자가 이 옵션을 선택하면 ConfigClient.disableFit 메서드를 호출하여 Google 피트니스를 사용 중지할 수 있습니다.
Kotlin
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)}
Java
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));
[[["이해하기 쉬움","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-08-31(UTC)"],[],[]]