【问题标题】:Firebase Remote Config: The named parameter 'expiration' isn't definedFirebase 远程配置:未定义命名参数“过期”
【发布时间】:2021-08-24 04:27:21
【问题描述】:

未定义参数“过期”我将 firebase 远程配置更新为 0.10.0,但在这一行中出现此错误。

await _remoteConfig.fetch(expiration: Duration(hours: 5));

【问题讨论】:

    标签: firebase flutter dart pubspec


    【解决方案1】:

    包更新了请试试这个。

     await remoteConfig.setConfigSettings(RemoteConfigSettings(
                  fetchTimeout: const Duration(seconds: 10),
                  minimumFetchInterval: Duration.zero,
                ));
                await remoteConfig.fetchAndActivate();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-04
      • 1970-01-01
      • 2020-02-13
      • 2022-11-01
      • 2020-06-24
      • 2018-05-14
      • 2020-02-16
      相关资源
      最近更新 更多