flyer chat
flyer chat is a platform for creating in-app chat experiences using flutter.
this repository contains firebase baas implementation for flutter. we are also working on our more advanced saas and self-hosted solutions.
actively maintained, community-driven firebase baas for chat applications with an optional chat ui.
getting started
requirements
dart >=2.12.0
and flutter >=2.0.0
, firebase project.
read our documentation or see the example project. to run the example project you need to have your own firebase project and depending on the platform you want to:
- create an ios app with a bundle id
com.example
(only required for the example project, you can use anything for your app) in firebase console of your project and download generatedgoogleservice-info.plist
. put it in theexample/ios/runner
folder. you don’t need to open xcode to do it, it will expect this file in this folder. - create an android app with package name
com.example
(only required for the example project, you can use anything for your app) in firebase console of your project and download generatedgoogle-services.json
. put it in theexample/android/app
folder. - create a web app in firebase console of your project. you will see a script that will look like this
<!-- firebase configuration -->
<script>
var firebaseconfig = {
apikey: "...",
authdomain: "[your_project].firebaseapp.com",
databaseurl: "https://[your_project].firebaseio.com",
projectid: "[your_project]",
storagebucket: "[your_project].appspot.com",
messagingsenderid: "...",
appid: "1:...:web:...",
measurementid: "g-...",
};
// initialize firebase
firebase.initializeapp(firebaseconfig);
</script>
create a firebase-config.js
file in the example/web
folder and put there only js part like this
var firebaseconfig = {
apikey: "...",
authdomain: "[your_project].firebaseapp.com",
databaseurl: "https://[your_project].firebaseio.com",
projectid: "[your_project]",
storagebucket: "[your_project].appspot.com",
messagingsenderid: "...",
appid: "1:...:web:...",
measurementid: "g-...",
};
// initialize firebase
firebase.initializeapp(firebaseconfig);
after all of this is done you will need to register a couple of users and the example app will automatically suggest email and password on the register screen, default password is qawsed1-
. to set up firebase security rules so users can see only the data they should see, continue with our documentation.
Comments are closed.