앱 체크에 앱을 등록하면 일반적으로 데스크톱 플랫폼, 에뮬레이터 또는 지속적 통합(CI) 환경에서 앱이 실행되지 않습니다. 이러한 환경은 유효한 기기로 인정되지 않기 때문입니다. 개발 및 테스트 중에 이러한 환경에서 앱을 실행하려면 실제 증명 제공자 대신 앱 체크 디버그 제공자를 사용하는 앱의 디버그 빌드를 만들면 됩니다.
코드를 통한 구성
앱을 실행하는 동안(예: 개발 중에) 디버그 제공자를 사용하려면 다음을 수행합니다.
Firebase Console의 App Check 섹션에 있는 앱의 더보기 메뉴에서 디버그 토큰 관리를 선택합니다. 그런 다음 새 디버그 토큰을 만듭니다. 다음 단계에서 토큰이 필요합니다.
이 토큰은 유효한 기기 없이도 Firebase 리소스에 액세스를 허용하므로 비공개로 유지하는 것이 중요합니다. 공개 저장소에 커밋하지 말고 등록된 토큰이 손상된 경우 Firebase Console에서 즉시 취소합니다.
초기화 코드에서 다음을 수행합니다.
usingFirebase.AppCheck;voidInitializeFirebase(){// Configure the Debug Provider factory with your debug token.DebugAppCheckProviderFactory.Instance.SetDebugToken("YOUR DEBUG TOKEN");// Set App Check to use the debug provider factoryFirebaseAppCheck.SetAppCheckProviderFactory(DebugAppCheckProviderFactory.Instance);// Proceed to initialize Firebase as normal}
기타 구성 옵션
다른 구성 옵션은 플랫폼에 따라 사용할 수 있습니다(예: 플랫폼 환경 변수 사용). 자세한 내용은 iOS+ 또는 Android 디버그 제공자 문서를 참고하세요.
이 토큰은 유효한 기기 없이도 Firebase 리소스에 액세스를 허용하므로 비공개로 유지하는 것이 중요합니다. 공개 저장소에 커밋하지 말고 등록된 토큰이 손상된 경우 Firebase Console에서 즉시 취소합니다.
[null,null,["최종 업데이트: 2025-08-23(UTC)"],[],[],null,["After you have registered your app for App Check, your app normally won't run\non desktop platforms, in an emulator, or from a continuous integration (CI)\nenvironment, since those environments don't qualify as valid devices. If you\nwant to run your app in such an environment during development and testing, you\ncan create a debug build of your app that uses the App Check debug provider\ninstead of a real attestation provider.\n| **Warning:** The debug provider allows access to your Firebase resources from unverified devices. Don't use the debug provider in production builds of your app, and don't share your debug builds with untrusted parties.\n\nConfiguration via code\n\nTo use the debug provider while running your app\n(during development, for example), do the following:\n\n1. In the [**App Check**](//console.firebase.google.com/project/_/appcheck) section\n of the Firebase console, choose **Manage debug tokens** from your app's\n overflow menu. Then, create a new debug token. You'll need the token in the\n next step.\n\n Because this token allows access to your Firebase resources without\n a valid device, it is crucial that you keep it private. Don't commit it to a\n public repository, and if a registered token is ever compromised, revoke it\n immediately in the Firebase console.\n\n2. In your initialization code, do the following:\n\n using Firebase.AppCheck;\n\n void InitializeFirebase() {\n // Configure the Debug Provider factory with your debug token.\n DebugAppCheckProviderFactory.Instance.SetDebugToken(\"YOUR DEBUG TOKEN\");\n\n // Set App Check to use the debug provider factory\n FirebaseAppCheck.SetAppCheckProviderFactory(\n DebugAppCheckProviderFactory.Instance);\n\n // Proceed to initialize Firebase as normal\n }\n\nOther configuration options\n\nOther configuration options are available based on platform, for example using\nthe platforms environment variables. For more\ninformation, refer to the [iOS+](/docs/app-check/ios/debug-provider) or\n[Android](/docs/app-check/android/debug-provider) debug provider documentation.\n\nBecause this token allows access to your Firebase resources without a\nvalid device, it is crucial that you keep it private. Don't commit it to a\npublic repository, and if a registered token is ever compromised, revoke it\nimmediately in the Firebase console."]]