patapata_firebase_analytics 1.0.0 patapata_firebase_analytics: ^1.0.0 copied to clipboard
This package is a plugin for Patapata that adds support for Firebase Analytics to your Patapata app.
Patapata - Firebase Analytics
Add support for Firebase Analytics to your Patapata app.
About #
This package is a plugin for Patapata that adds support for Firebase Analytics to your Patapata app. It will automatically log analytics events to Firebase Analytics from Patapata's Analytics system.
This plugin requires the patapata_firebase_core plugin to be installed and activated.
Due to a bug in the FlutterFire CLI, the stable version of 0.2.7 (at the time of writing this README) does not write out the required paramaters to run firebase_analytics correctly.
A temporary workaround is to use the dev version of the cli and run flutterfire configure
again.
https://github.com/invertase/flutterfire_cli/issues/210#issuecomment-1770505141
The above still might not be enough in some cases. If you are still having issues, try the following:
- Add
classpath 'com.google.gms:google-services:4.3.14'
toandroid/build.gradle
. Make sure the version is exactly that. - Add
apply plugin: 'com.google.gms.google-services'
toandroid/app/build.gradle
at the bottom of the file.
Getting started #
- Add the dependency to your
pubspec.yaml
file
flutter pub add patapata_firebase_analytics
- Import the package
import 'package:patapata_firebase_analytics/patapata_firebase_analytics.dart';
- Activate the plugin
void main() {
App(
environment: const Environment(),
plugins: [
FirebaseCorePlugin(),
FirebaseAnalyticsPlugin(),
],
)
.run();
}
Contributing #
Check out the CONTRIBUTING guide to get started.