gpt4 book ai didi

firebase - 如何为firebase firestore配置获取googleappid?

转载 作者:行者123 更新时间:2023-12-01 15:42:42 27 4
gpt4 key购买 nike

我正在尝试创建一个连接到 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',
),
);

我知道如何获取 gcmSenderID、apiKey 和 projectID,但我无法理解如何获取 googleAppID。

请指教
final Firestore firestore = new Firestore(app: app);

最佳答案

正如@martin-zeitler 建议的那样,该 ID 可在下载的 google-services.json 文件中找到。
感谢您指出。

关于firebase - 如何为firebase firestore配置获取googleappid?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51797990/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com