Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(app-check): debug provider cannot be used #453

Open
4 of 14 tasks
robingenz opened this issue Oct 11, 2023 · 0 comments
Open
4 of 14 tasks

bug(app-check): debug provider cannot be used #453

robingenz opened this issue Oct 11, 2023 · 0 comments
Labels
bug/fix Something isn't working package: app-check platform: ios iOS platform

Comments

@robingenz
Copy link
Member

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Performance
  • Remote Config

Did you test the latest version?

  • I use the latest version

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

When retrieving a token with the debug provider, you get the following error message.

image

See robingenz/capacitor-firebase-plugin-demo#299

Expected behavior

I expected to successfully retrieve the Firebase App Check token without any errors.

Reproduction

https://github.com/robingenz/capacitor-firebase-plugin-demo

Steps to reproduce

  1. Open the iOS app.
  2. Navigate to the screen where the Firebase App Check token is requested.
  3. Check "Use Debug Provider" and click on the "Initialize" button.
  4. Click on the "Get Token" button.
  5. Observe the error message.

Other information

Until now, Firebase on Android and iOS is initialized automatically when the app is launched, see this example.
However, sometimes Firebase may not be initialized directly at startup. This is the case for Firebase App Check if you want to use the debug provider, see here.

let providerFactory = AppCheckDebugProviderFactory()
AppCheck.setAppCheckProviderFactory(providerFactory)

FirebaseApp.configure()

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 5.4.2
@capacitor/core: 5.4.2
@capacitor/android: 5.4.2
@capacitor/ios: 5.4.2

Installed Dependencies:

@capacitor/cli: 5.4.2
@capacitor/core: 5.4.2
@capacitor/android: 5.4.2
@capacitor/ios: 5.4.2

[success] iOS looking great! 👌
[success] Android looking great! 👌

Before submitting

  • I understand that incomplete issues (e.g. without reproduction) are closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working package: app-check platform: ios iOS platform
Projects
None yet
Development

No branches or pull requests

1 participant