https://firebase.google.com/docs/flutter/setup?hl=zh-cn
lib:https://pub.dev/packages/firebase_analytics
useful github example:
https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_analytics/firebase_analytics/example/lib/main.dart

android

选项2 https://www.jianshu.com/p/3434c1297d7f
无法连接网络 https://blog.csdn.net/qq_28268507/article/details/83659299
https://juejin.im/post/5c90514e6fb9a070c859029c
https://juejin.im/post/5ce3a305e51d45106c403151
https://stackoverflow.com/questions/56149754/how-to-solve-token-retrieval-failed-authentication-failed

ios

https://zhuanlan.zhihu.com/p/59693018
https://github.com/flutter/flutter/issues/16871