First we create our project and add firebase. In our pubspec.yaml we add the core and the cloud store for database and the google maps flutter package. For Android if your minSdkVersion is set to 21 then multiDex will be enable by default, if not you need to enable it manually: Enable MultiDex
The first thing to do (besides creating a new project) is to add the firebase-ml-vision plugin you can find it in here. In the readme and installing section tells us: “You must also configure Firebase for each platform project”. So if you only add this plugin to the pubspec.yaml you’re going to get the following error messages:
* What went wrong: A problem occurred evaluating project ‘:firebase_ml_vision’.
> Could not find the firebase_core FlutterFire plugin, have you added it as a dependency in your pubspec?
What went wrong:A problem occurred configuring project ‘:firebase_ml_vision’.
> compileSdkVersion is not specified. …
In this project i’ll be showing how to use push notifications in flutter with the firebase_messaging package using firebase cloud messaging.
Create a new project and then add the firebase messaging package:
Then i’ll go to the getting started guide of the package https://pub.dev/packages/firebase_messaging#getting-started and follow the steps.
First step tell us to set up our app in firebase in order to download and place in our project the google-services.json file. So in the firebase console i’ll add one application and follow the four steps. For the first one we won’t be using the SHA-1 certificate.
First we go to https://cloud.google.com/maps-platform/ and create a new project (if you dont already have one).
Then we’ll create our api key, just go to “Api’s & Services” then Credentials (make sure your project is selected)
Software enthusiast just sharing my experiences