patapata_firebase_analytics 1.0.2 copy "patapata_firebase_analytics: ^1.0.2" to clipboard
patapata_firebase_analytics: ^1.0.2 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' to android/build.gradle. Make sure the version is exactly that.
  • Add apply plugin: 'com.google.gms.google-services' to android/app/build.gradle at the bottom of the file.

Getting started #

  1. Add the dependency to your pubspec.yaml file
flutter pub add patapata_firebase_analytics
  1. Import the package
import 'package:patapata_firebase_analytics/patapata_firebase_analytics.dart';
  1. Activate the plugin
void main() {
  App(
    environment: const Environment(),
    plugins: [
      FirebaseCorePlugin(),
      FirebaseAnalyticsPlugin(),
    ],
  )
  .run();
}

Contributing #

Check out the CONTRIBUTING guide to get started.

License #

See the LICENSE file

0
likes
120
pub points
21%
popularity

Publisher

verified publishergree.co.jp

This package is a plugin for Patapata that adds support for Firebase Analytics to your Patapata app.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (LICENSE)

Dependencies

firebase_analytics, flutter, patapata_core, patapata_firebase_core

More

Packages that depend on patapata_firebase_analytics