web bug fixed
This commit is contained in:
parent
a0ee95cab8
commit
fc2bf59620
|
|
@ -3,11 +3,11 @@ name: app-test
|
|||
spec:
|
||||
allow_http: false
|
||||
disable_default_domains: true
|
||||
image: app:2.2.1
|
||||
image: app:2.2.1.2
|
||||
image_pull_policy: IfNotPresent
|
||||
path: /
|
||||
replicas: 1
|
||||
resources:
|
||||
memory: 100Mi
|
||||
memory: 256Mi
|
||||
domains:
|
||||
- name: web.didvan.app
|
||||
|
|
|
|||
|
|
@ -8,19 +8,22 @@ import 'package:didvan/services/app_initalizer.dart';
|
|||
import 'package:didvan/views/home/studio/studio_details/studio_details_state.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp();
|
||||
final initMsg = await FirebaseMessaging.instance.getInitialMessage();
|
||||
if (initMsg != null) {
|
||||
AppInitializer.clickAction = initMsg.data['click_action'].replaceAll(
|
||||
'navigate-',
|
||||
'',
|
||||
);
|
||||
if (!kIsWeb) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp();
|
||||
final initMsg = await FirebaseMessaging.instance.getInitialMessage();
|
||||
if (initMsg != null) {
|
||||
AppInitializer.clickAction = initMsg.data['click_action'].replaceAll(
|
||||
'navigate-',
|
||||
'',
|
||||
);
|
||||
}
|
||||
}
|
||||
runApp(const Didvan());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue