简体   繁体   中英

Firebase Remote Config: The named parameter 'expiration' isn't defined

The parameter 'expiration' is not defined I updated firebase remote config to 0.10.0 and I got this error in this line.

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

The package is updated please try this.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM