flutter Firebase.initializeApp error
-
[flutter] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()flutter/flutter 에러 2023. 4. 26. 16:51
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() flutter 로 firebase 메세지 수신 테스트 해보려고 빌드했는데 에러가 나타났네요. void main() async{ await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); FirebaseMessaging messaging = FirebaseMessaging.instance; var fcmToken = await FirebaseMessaging.instance.getToken(vapidKey: "$fcmKey"); print('FCM token : $fcmToken'); } ..