File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
33import 'package:firebase_core/firebase_core.dart' ;
4+ import 'package:flutter/foundation.dart' show kIsWeb;
45import 'package:flutter/material.dart' ;
56import 'package:flutter_localizations/flutter_localizations.dart' ;
67import 'package:taba_app/core/locale/app_locale.dart' ;
@@ -33,14 +34,18 @@ class _TabaAppState extends State<TabaApp> {
3334
3435 Future <void > _initializeApp () async {
3536 try {
36- // Firebase 초기화 (Flutter 측)
37- await Firebase .initializeApp ();
37+ // Firebase 초기화 (웹에서는 건너뛰기 - firebase_options.dart 설정 필요)
38+ if (! kIsWeb) {
39+ await Firebase .initializeApp ();
40+ }
3841
3942 // 앱 언어 초기화 (시스템 언어 감지 및 저장)
4043 await AppLocaleController .initialize ();
4144
42- // FCM 초기화
43- await FcmService .instance.initialize ();
45+ // FCM 초기화 (웹에서는 건너뛰기)
46+ if (! kIsWeb) {
47+ await FcmService .instance.initialize ();
48+ }
4449
4550 _checkAuth ();
4651 } catch (e) {
You can’t perform that action at this time.
0 commit comments