firebase-remote-config

How to get RemoteConfig defaultValue inside firebase function?

泪湿孤枕 提交于 2020-08-10 19:46:32
问题 I am writing a firebase function. And in there, I need a default value. And since I set up a Remote Config in Firebase, I try to use it inside my firebase function (to have one source of truth as for the default-values) Using the following code to retrieve a remoteConfig-parameter, how can you convert it to a typescript number ? const remoteConfigTemplate = await admin.remoteConfig().getTemplate(); const defaultVal = remoteConfigTemplate.parameters["video_max_duration"].defaultValue const

Using Google Firebase Remote Config without Google Play Services?

旧时模样 提交于 2020-08-07 07:54:40
问题 Is it possible to use Firebase Remote Config without having Google Play Services installed (aosp) on the device? I did follow this setup in my android project: (via https://firebase.google.com/docs/android/setup): added classpath ' com.google.gms:google-services:4.3.3 ' into main gradle file added implementation ' com.google.firebase:firebase-config:19.1.3 ' and ' apply plugin: 'com.google.gms.google-services '' into app gradle file It does compile, but when I initially start the app

Using Google Firebase Remote Config without Google Play Services?

自作多情 提交于 2020-08-07 07:54:21
问题 Is it possible to use Firebase Remote Config without having Google Play Services installed (aosp) on the device? I did follow this setup in my android project: (via https://firebase.google.com/docs/android/setup): added classpath ' com.google.gms:google-services:4.3.3 ' into main gradle file added implementation ' com.google.firebase:firebase-config:19.1.3 ' and ' apply plugin: 'com.google.gms.google-services '' into app gradle file It does compile, but when I initially start the app

Using Google Firebase Remote Config without Google Play Services?

 ̄綄美尐妖づ 提交于 2020-08-07 07:53:18
问题 Is it possible to use Firebase Remote Config without having Google Play Services installed (aosp) on the device? I did follow this setup in my android project: (via https://firebase.google.com/docs/android/setup): added classpath ' com.google.gms:google-services:4.3.3 ' into main gradle file added implementation ' com.google.firebase:firebase-config:19.1.3 ' and ' apply plugin: 'com.google.gms.google-services '' into app gradle file It does compile, but when I initially start the app

Firebase Remote Config - Initial fetch return local default values

為{幸葍}努か 提交于 2020-08-07 05:39:37
问题 I'm using Firebase Remote Config to fetch remote data and my app needs an up-to-date data from the first launch. I'm doing a fetch and update in my Application's onCreate() : mFirebaseRemoteConfig.fetch(cacheExpiration) .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { mFirebaseRemoteConfig.activateFetched(); } } }); And read the value with : myValue = mFirebaseRemoteConfig.getBoolean(Constants

Using Firebase with Unity and WebGL

六月ゝ 毕业季﹏ 提交于 2020-07-09 05:01:06
问题 I was thinking of using Firebase remote config with my Unity based game. I intent to release the game on Facebook with WebGL, and was wondering if there is Firebase implementation for WebGL as part of the SDK? 回答1: Firebase-Unity SDK is only for IOS and Android Platforms. However you can implement plugin to use web API for your WebGL build. If you would release your game on Facebook platform its better to use Parse.com. However WebGL is not supported in main SDK because its multi-threaded

how to get integer value from Firebase Remote Config in iOS swift?

大兔子大兔子 提交于 2020-06-17 14:11:32
问题 so I set Firebase remote config default in my iOS like this: let remoteConfig = RemoteConfig.remoteConfig() // set remote config default value let defaultRemoteConfig : [String:NSObject] = [ "number_of_recommended_events_to_show_per_page" : 15 as NSObject ] remoteConfig.setDefaults(defaultRemoteConfig) // Activate and refetch remote config data. // I use 'Load Value for next time' loading strategy remoteConfig.activate() remoteConfig.fetch() and then I want to get the value from remote like