简体   繁体   English

是否可以在 Flutter Web App 中使用 Firebase RemoteConfig?

[英]Is it possible to use Firebase RemoteConfig in Flutter Web App?

I'm trying to use Firebase RemoteConfig in my Flutter Web App, but when I call the method "fetchAndActivate", a strange error occurs:我试图在我的 Flutter Web 应用程序中使用 Firebase RemoteConfig,但是当我调用方法“fetchAndActivate”时,发生了一个奇怪的错误:

WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
RemoteConfig.instance.fetchAndActivate();

Error:错误:

Error: Expected a value of type 'int', but got one of type 'Null'
    at Object.throw_ [as throw] (http://localhost:53640/dart_sdk.js:5032:11)
    at Object.castError (http://localhost:53640/dart_sdk.js:5005:15)
    at Object.cast [as as] (http://localhost:53640/dart_sdk.js:5314:17)
    at Function.as (http://localhost:53640/dart_sdk.js:17870:19)
    at method_channel_firebase_remote_config.MethodChannelFirebaseRemoteConfig.new.setInitialValues (http://localhost:53640/packages/firebase_remote_config_platform_interface/src/method_channel/method_channel_firebase_remote_config.dart.lib.js:288:67)

文档说它现在支持 (2021) https://firebase.flutter.dev/升级到 firebase_remote_config 后我可以在 web 应用程序中使用它:^1.0.2

At this time, Remote config is not supported on Flutter Web.目前 Flutter Web 不支持 Remote config。 Link .链接

看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试在 Flutter 中实例化 Firebase RemoteConfig 时出现问题 - Problem trying to instantiate Firebase RemoteConfig in Flutter 在 Flutter Web App 中使用 Firebase 实时数据库 - Use Firebase Realtime Database in Flutter Web App 在 Flutter 网页和移动应用中使用 Firebase - Use Firebase in both Flutter web AND mobile app 访问 RemoteConfig 创建循环 Flutter Web - Accessing RemoteConfig create loop Flutter Web Firebase RemoteConfig用于在应用启动时显示消息 - Firebase RemoteConfig used for showing a message on app start Firebase RemoteConfig使用信号11(SIGSEGV)崩溃应用程序 - Firebase RemoteConfig crashes app with signal 11 (SIGSEGV) 使用Firebase RemoteConfig存储API密钥是否可以? - Is it OK to use Firebase RemoteConfig to store API Keys? 是否可以托管将Firestore与Firebase托管一起使用的Firebase Web应用程序? - is it possible to host Firebase web app which use Firestore with Firebase Hosting? 是否可以在 Flutter Web 应用程序中使用 firebase admin SDK? - is it possible to use firebase admin SDK in flutter web apps? Flutter web app & firebase:不能在模块外使用导入语句 - Flutter web app & firebase : Cannot use import statement outside a module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM