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

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

有没有办法解决这个问题……?

推荐答案

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

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

如果您在Objective-c中使用Ffltter,请将以下内容添加到appdelgate.m文件中:-

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

Flutter相关问答推荐

为什么在Flutter中使用firebase数据库时获取引用时会划掉引用?

Flutter Go路由深度链接不按预期工作

使用Flutter 提供程序包加载状态应用程序时,在自定义按钮中显示CircularProgressIndicator

无法在主屏幕视图中设置当前日期容器'

将图标呈现在Flutter 克牌小工具的角落上

当键盘在抖动中打开时,如何才能看到包装在SingleChildScrollView中的列中的最后一个小工具?

你能go 掉Flutter 小部件测试中的样板吗?

框中的Flutter 适配图像

在Ffltter中,我已经使用了Ffltter_BLOC Cupit和Pusher,但当获得新数据时,UI没有更新

尽管 onCollision 处理了我的角色还是从平台上掉了下来

了解多Provider 和流

从所有设备注销,因为用户帐户已从 firebase flutter 中删除

更改 flutter listview 中的布局

Flutter Flame OS 错误:使用音频文件 .wav 时出现该进程无法访问该文件,因为它正被另一个进程使用

Flutter blue plus 库,当try 从 esp32 驱动程序获取 PlatformException 时读取特性

Flutter 错误:OutletListModel类型的值不能分配给List类型的变量?

在不丢失游戏状态的情况下从 Flame 游戏导航到 Flutter 小部件

statefulWidget 无法进行所需更改的问题

Flutter 中的无效日期格式 2022 年 11 月 14 日

Positioned 的宽度或 SizedBox 的宽度都不适用于堆栈小部件 - Flutter