Guide to integrate the firebase in your flutter apps

Credits: Myself

In this series of articles, I’ll help you integrate firebase into your flutter app to make it production-ready.

In this particular part, we’ll set up the new flutter project and connect it to a firebase project, set up everything for both android and iOS.

Adding the dependencies

Let’s start by adding the firebase dependencies to pubspec.yaml file. Scroll down to the dependencies section.

Note: Add these to the “dependencies” section, not the “dev-dependencies”. Learn about the difference here.

firebase_core: "^1.2.1"
firebase_analytics: "^8.1.1"

The first dependency is the core firebase dependency and I’ve included the…

Firestore Rules

In this article, I’ll help you write rules for role-based Firestore access.

Credit: DNS stuff

I’ll try to explain this with an example so that you can easily understand when to use this method of authentication while you build your application.

Role-Based User Authorization: Where users can have many roles and those roles provide different privileges that enable different operations on your (Firestore) database.

To better understand this, take a look at the following data model.

As you’re just getting started with building android apps and I assume that you’ve set up everything like setting up the Android Studio IDE, downloading the SDKs and creating a brand new project. You can find a lot of tutorials and videos on how to do these boring things on the internet, let me skip that part.

Tutorial on setting up Android Studio | Official Documentation (

Now, that you have a brand new android studio project, let’s start exploring the IDE a bit. On the left side of the IDE, you should see something like

Let me assume you’re an Android user, do you know that once you’ve allowed a third-party application the CAMERA and MIC permission they can potentially hear or watch you in the background? Yes, It can do it.

You probably might have heard about the iOS 14’s privacy feature which shows a little dot indication when an application uses your device camera or microphone.

iOS14 Indicator

This feature made me excited and I started to find a way to implement this on my Android device too.

As the result, I successfully mimicked this feature to android with my app called SafeDot.

This app…

Recommendation Systems | ML

Recommendation systems are pretty common these days. Netflix, Prime Video, YouTube and other streaming platforms use these recommendation systems to suggest a movie that you might like to watch according to your previous watch history.

Hearing this for the first time, got me excited. I started researching and building a simple prototype of a movie recommendation algorithm. I’ll walk you thought what I learnt from my research and building a working engine.

We’ll also build a system in python using scikit-learn python package. …

Aravind Chowdary

Mobile App Developer & Machine Learning Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store