firebase-remote-config

Firebase Remote Config: what is the definition of an “app instance” regarding percentile conditions?

烈酒焚心 提交于 2019-12-06 12:35:43
When I want to perform an A/B test with "Firebase Remote Configs" I assign 50% of the users a value "GroupA" and the other receives "GroupB" using the percentile condition. According to the documentation ( 1 ) the percentile is assigned once each app instance. When I uninstall an reinstall the app on the same phone (including and clearing the users settings) I would expect that the percentile condition is evaluated again and the user will be in either on of the groups. I assume this since also the FirebaseInstanceId retrieved using FirebaseInstanceId.getInstance().getId() changed when

Firebase Remote Config results on initial request

余生颓废 提交于 2019-12-06 07:10:55
I'm using a singleton to fetch the parameters from a Firebase remote config file. The first time the app is run, I can only access the default values from the singleton; subsequent runs correctly return the config's values. What's a better way to do this, so I can access the values from a fresh start? protocol RemoteConfigProtocol { func remoteConfigReceived() } class RemoteConfigManager { static let sharedInstance = RemoteConfigManager() var delegate: RemoteConfigProtocol? let demoTitle: String // private initialiser for the singleton private init() { // Configure for dev mode, if needed let

Create audience based on dynamic user property

梦想的初衷 提交于 2019-12-06 01:48:19
问题 I have an app in which a user can have a "paid" or "free" status. A user can switch from "free" to "paid" (if he does an in app purchase) or from "paid" to "free" if he stops to pay its subscription. Can I use a dynamic user property to track the information in Firebase ? In the doc it is not clear if it is allowed to have a dynamic user property value that can change over time (https://support.google.com/firebase/answer/6317519?hl=en) If it is not a good practice, how is it possible to do

How to implement fetch() from Firebase Remote Config in onStart() method?

混江龙づ霸主 提交于 2019-12-05 04:48:43
I'm trying to implement calling Firebase Remote Config fetch() method in onStart() . I thought it would be quite easy but after few attempts it isn't. First of all, I want to check for new config values as soon as the user opens the app and cache expiration time was exceeded . That's why I chose onStart() method to do this. At first I used standard approach: //called in Activity onStart() method public static void fetchRemoteConfigValues(Activity activity) { long cacheExpirationInSeconds = 43200L; firebaseRemoteConfig.fetch(cacheExpirationInSeconds) .addOnSuccessListener(activity, new

Android: Firebase remoteConfig getString() method is removing quotes from string inside default.xml

好久不见. 提交于 2019-12-03 23:27:07
i have the following remote config_default.xml file <?xml version="1.0" encoding="utf-8"?> <defaultsMap> <entry> <key>LOCAL_JSON</key> <value>[{"title":"TitleA","path":"pathA","image_url":" Some URL A"},{"title":"TitleB","path":"pathB","image_url":" Some URL B"}]</value> </entry> </defaultsMap> Now when i try to access it using Firebase remote config getString() method, i always get the string without quotes "[{title:TitleA,path:pathA,image_url: Some URL A},{title:TitleB,path:pathB,image_url: Some URL B}]"§ as seen in the image below I put the same String on Firebase remote config console and

Firebase Remote Config feature for web app (after Firebase expansion)

有些话、适合烂在心里 提交于 2019-12-03 06:40:32
问题 I am building a web application with Firebase and I saw they released their expansion with all great new features. However, the Remote Config section is now only available for Android and IOS apps. Is there a way to apply the remote config also on web app as well? 回答1: firebaser here Since September 2019 it is possible to use Remote Config from your web applications. Have a look at Get started with Firebase Remote Config on Web to get started. 回答2: If you are interested in remote config on

Is there an API to *change* Firebase Remote Config values?

谁都会走 提交于 2019-12-03 06:01:43
问题 Firebase console support easy way to configure remote configuration parameter. In our app we have remote configuration different per user, and those configuration are set on our own web portal. Is there any API by which I can push configs from my own portal to Firebase remote config server and then use remote config lib on android app to get new configurations? 回答1: This feature is available in Firebase Remote Config REST API 回答2: Yes! As of March 2018 there is now a REST API available for

Firebase Remote Config feature for web app (after Firebase expansion)

╄→尐↘猪︶ㄣ 提交于 2019-12-02 20:19:29
I am building a web application with Firebase and I saw they released their expansion with all great new features. However, the Remote Config section is now only available for Android and IOS apps. Is there a way to apply the remote config also on web app as well? firebaser here Since September 2019 it is possible to use Remote Config from your web applications. Have a look at Get started with Firebase Remote Config on Web to get started. If you are interested in remote config on the web I suggest the following tips: I did this on my web app and it is working perfectly. in the firebase

Firebase Rest api for remote config

匆匆过客 提交于 2019-12-02 08:45:29
Trying to find a server to server (preferably in python), to connect with Firebase remote config. Actions: View and edits. found this useful pip, It contains the autentication, database and storage but not remote config. I can add my own to the pip but I haven't found anything documenting the rest api to Remote Config Update (2018-03-13): As Rosário points out, there is now a REST API that allows you to read and edit configurations. There still is no API for web clients that works similarly to the iOS and Android clients. My previous answer is below the fold. There is no public REST API to

How is the Firebase Remote Config rate limit counted?

不打扰是莪最后的温柔 提交于 2019-11-30 21:18:05
I am using Firebase Remote Config to store a secret key for a mobile app ( I do not want to include in client app due to security problems). The problem is I know that fetching config from server many times in a short period of time can throw a throttling exception. In a production app there is a limit of 5 requests per hour but I do not know if this limit is count per user or globally. This is the code I have: //first search cached result, if present String key = FirebaseRemoteConfig.getInstance().getString("key"); if(key != null && !key.isEmpty()){ setKeyAndGoHome(key); }else { //no key