我的Flutter/Firebase应用程序显示尚未配置任何应用程序 [英] My Flutter/Firebase app is showing no app has been configured yet

查看:96
本文介绍了我的Flutter/Firebase应用程序显示尚未配置任何应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Flutter/Firebase中制作一个应用程序,并且在我的Visual Studio代码终端上遇到以下错误:-

I am making an app in Flutter/Firebase and I am experiencing the following error on my visual studio code terminal:-

Xcode build done.                                           522.2s
6.26.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
6.26.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications 
proxy enabled, will swizzle remote notification receiver handlers. If you'd 
prefer to manually integrate Firebase Messaging, add 
"FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow 
the instructions at:
https://firebase.google.com/docs/cloud- 
messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
Waiting for iPhone 11 to report its views...                         9ms
Syncing files to device iPhone 11...                               610ms

有关如何解决此问题的任何想法...... ????

any ideas on how to solve this issue......????

推荐答案

我解决了这个问题.如果您在AppDelegate.swift中使用swift,请确保已按以下顺序添加以下内容:

I solved the issue. If you are using swift in your AppDelegate.swift, make sure you've added the following in that order:

FirebaseApp.configure() //add this before the code below
GeneratedPluginRegistrant.register(with: self)

如果您将flutter与Objective-C结合使用,请将以下内容添加到您的appdelgate.m文件中:-

If you're using flutter with objective-c, add the following to your appdelgate.m file:-

didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure]; //add this right after the above

这篇关于我的Flutter/Firebase应用程序显示尚未配置任何应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆