-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_app_check] .getToken()
is not working for iOS and macOS
#8969
Comments
Thanks for the report. Using code sample above, I am getting same error as reported. |
Any update on this? |
Hey @nilsreichardt, I've just spent a while figuring out how to get this working again. I've updated the example app so it works but not sure if this will run out the box for other users as I had to paste the debug token generated on app start into the Firebase console. Here are the steps I took:
Once the above is configured (and you have already setup your app with Firebase using Once all this setup is complete, you will no longer receive this error. Hey @kevinthecheung, is there any chance we could have an example of how to setup the Currently, the docs point to the iOS debug setup here. Which takes you to the iOS debug page which has this code snippet for iOS: But Flutter developers need to update their #import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
@import Firebase;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
#if DEBUG
FIRAppCheckDebugProviderFactory *providerFactory = [[FIRAppCheckDebugProviderFactory alloc] init];
[FIRAppCheck setAppCheckProviderFactory:providerFactory];
#endif
[GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end
|
Bug report
Describe the bug
Running
await FirebaseAppCheck.instance.getToken()
throwsUnhandled Exception: [firebase_app_check/unknown] The operation couldn’t be completed. (com.firebase.appCheck error 0.)
when running this line on iOS and macOS.Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Should return the token with exceptions.
Sample project
Reproducible example
Additional context
Flutter doctor
Run
flutter --version
and paste the output below:Click To Expand
Flutter dependencies
Using
firebase_app_check
0.0.6+14
The text was updated successfully, but these errors were encountered: