Step up - Firebase for chat app
🗄️ Step up - Firebase
Step 0 - Firebase Console
https://console.firebase.google.com/
To create firebase project - flutterfirebasechat
Create the app in firebase console
Rename application ID
Make sure application Id matches the one you will use in firebase
Rename application Id com.example.devfest_flutter_firebase_chat
to com.gdg.devfestflutterfirebasechat
Search for
com.example.devfest_flutter_firebase_chat
📲 Configure iOS App
Make sure copy items if needed is Checked
📲 Config android App
Download the config file - google-services.json
Add firebase sdk to project
update classpath build.gradle
classpath 'com.google.gms:google-services:4.3.10'
Update Project-level build.gradle
Update App-level build.gradle
update dependency - not an important step
Update 🗄️ pubspec.yaml 📄 file
Add reference to these package 🗃️
! If you get an error.cloud_firestore: ^3.1.7firebase_auth: ^3.3.6firebase_core: ^1.12.0firebase_messaging: ^11.2.6firebase_storage: ^10.2.6
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
[https://guides.cocoapods.org/syntax/podfile.html#platform
] Error running pod install
run
If stuck switch to this branch.cd iospod deintegratepod repo updatepod install
git fetchgit checkout -t <remote_name>/03_firebase_setup
https://github.com/sumithpdd/devfest_uk_i_2022_flutter/tree/03_firebase_setup