颤动:在已发布的应用程序中无法获得收藏 [英] Flutter: not getting collection in released app

查看:19
本文介绍了颤动:在已发布的应用程序中无法获得收藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

try {
      DocumentReference ref = FirebaseFirestore.instance
          .collection('invoices')
          .doc(authService.getUser().uid);

      final doc = await ref.get();
      final data = doc.data();

      Map savedCompanyInfo = data != null ? data as Map<String, dynamic> : {};
      myRents.companyInfo = savedCompanyInfo;

      return savedCompanyInfo;
    } catch (e) {
      return {};
    }

在本地运行代码(模拟器和真实设备),但不在发布的应用程序中运行。它进入捕获物。

我最近在iOS上工作,也在Android上工作,因为我更新到Ffltter 2.8

推荐答案

release {
            signingConfig signingConfigs.release
            minifyEnabled false // this was true before
        }

这篇关于颤动:在已发布的应用程序中无法获得收藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆