mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-27 03:17:55 +00:00
Implemented firebase and onesignal
This commit is contained in:
+7
-1
@@ -1,7 +1,8 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:syncrow_app/firebase_options.dart';
|
||||
import 'package:syncrow_app/services/locator.dart';
|
||||
import 'package:syncrow_app/utils/bloc_observer.dart';
|
||||
import 'package:syncrow_app/utils/helpers/localization_helpers.dart';
|
||||
@@ -32,6 +33,11 @@ void main() {
|
||||
//to initialize the locator
|
||||
initialSetup();
|
||||
|
||||
await Firebase.initializeApp(
|
||||
name: 'test2',
|
||||
options: DefaultFirebaseOptions.currentPlatform,
|
||||
);
|
||||
|
||||
//final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
|
||||
//to save the locale in the shared preferences
|
||||
|
||||
Reference in New Issue
Block a user