Future initialize(context) async { FirebaseMessaging.instance.getNotificationSettings( FirebaseMessaging.onMessage.listen((Map<String, dynamic> message)) async { retrieveRideRequestInfo(getRideRequestId(message), context); }, onLaunch: (Map<String, dynamic> message) async { retrieveRideRequestInfo(getRideRequestId(message), context); }, onResume: (Map<String, dynamic> message) async { print("onResume: $message"); getRideRequestId(message); retrieveRideRequestInfo(getRideRequestId(message), context); }, ); } https://stackoverflow.com/questions/67293592/when-i-wrote-this-code-in-my-project-but-the-version-of-firebase-messaging-is-9 April 28, 2021 at 12:01PM
2021年4月27日星期二
when I wrote this code in my project but the version of firebase_messaging is ^9.1.2 so anyone can tell me what i can change to run correctly
订阅:
博文评论 (Atom)
没有评论:
发表评论