首页 > 解决方案 > Firebase 在颤振应用中不显示通知

问题描述

我有这个错误

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}

...

  @override
  void initState() {
    late FirebaseMessaging messaging;
    // TODO: implement initState
    messaging = FirebaseMessaging.instance;
    messaging.requestPermission();
    messaging.getToken().then((value) {
      print(value);
    });
    super.initState();
  }
(lldb) 2021-09-06 12:44:10.720822+0200 Runner[11619:3931022] 8.6.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.
Connecting to VM Service at ws://127.0.0.1:56781/Rd56hM3bizI=/ws
flutter: TOKENE HERE

我的发布规范

在此处输入图像描述

在物理 iOS 设备上运行我的应用程序

我已经被这个问题困扰了好几天

标签: flutterdartfirebase-cloud-messagingapple-push-notifications

解决方案


推荐阅读