作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试创建一个连接到 firestore 以存储和检索数据的 flutter 应用程序。从 flutter cloud_firestore 插件文档中,我可以看到我需要一些值来配置它。
final FirebaseApp app = await FirebaseApp.configure(
name: 'test',
options: const FirebaseOptions(
googleAppID: '1:79601577497:ios:5f2bcc6ba8cecddd',
gcmSenderID: '79601577497',
apiKey: 'AIzaSyArgmRGfB5kiQT6CunAOmKRVKEsxKmy6YI-G72PVU',
projectID: 'flutter-firestore',
),
);
最佳答案
正如@martin-zeitler 建议的那样,该 ID 可在下载的 google-services.json 文件中找到。
感谢您指出。
关于firebase - 如何为firebase firestore配置获取googleappid?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51797990/
我是一名优秀的程序员,十分优秀!