Code Monkey home page Code Monkey logo

Comments (4)

akshaybalaji123 avatar akshaybalaji123 commented on July 4, 2024

Yes I did but now I am having a different problem.

My app does start the connection to Firebase but each time it says connection timed out and I cannot resolve it.

from flutterchatapptutorial.

akshaybalaji123 avatar akshaybalaji123 commented on July 4, 2024

@theindianappguy do you use stream in this app? If we want to launch this app is there anyway to do this without stream??

from flutterchatapptutorial.

prasad7a avatar prasad7a commented on July 4, 2024

Hello Akshay,
I recommend checking out this StackOverflow thread: https://stackoverflow.com/questions/63492211/no-firebase-app-default-has-been-created-call-firebase-initializeapp-in
There's more info on why this happened in the thread.
I used the fourth method because it was an easy implementation and it solved this issue instantly.

from flutterchatapptutorial.

schmelto avatar schmelto commented on July 4, 2024

The easiest way to solve this issue is to add those lines at your main.dart-file in your main-function

import 'package:flutter_chat_app/helper/authenticate.dart';
import 'package:firebase_core/firebase_core.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}

from flutterchatapptutorial.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.