flutter - 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 设备上运行我的应用程序
我已经被这个问题困扰了好几天
解决方案
推荐阅读
- javascript - 用表达式中的表达式传递变量中的变量 - JavaScript
- arrays - 如何创建并推送到共享或分布式数组数组?
- excel - Qt QAxObject - 在 querySubObject 和 Cell 属性上查找 Excell API/SDK 文档
- sql - Postgres 大于或空
- javascript - 为什么我在 html 画布中的两行有不同的线宽?
- node.js - 猫鼬 | 中间件 | 抛出错误时由 pre/post 挂钩执行的回滚操作
- sql - T-SQL 获取子字符串
- javascript - 我正在尝试对我制作的一个简单项目进行 dockerize 处理,但遇到了一些问题
- javascript - React ErrorBoundary 捕获错误,但错误仍然使应用程序崩溃
- c# - ASP.NET MVC 5 - LabelFor 显示属性名称而不是值,但 TextBoxFor 使用相同的属性可以正常工作