firebase-remote-config

Can I declare an array to Firebase Remote config?

不问归期 提交于 2019-12-20 09:58:02
问题 I am a novice to Android and Firebase. Is it possible to declare an array inside the the Parameter key of Firebase Remote Config? I want to provide some promotions to some specific models/mobile devices. So if I could declare an array of models(i,e, Samsung J5, Xiaomi Note2 etc) I could easily enable promotions on those models. Please help me. 回答1: The Remote Config has recently added the option to save a key-value list by saving it to a JSON format. Sample usage: 1.Json stored in Remote

Firebase Rest api for remote config

本秂侑毒 提交于 2019-12-20 07:36:47
问题 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 回答1: 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

Default FirebaseApp is not initialized

时光总嘲笑我的痴心妄想 提交于 2019-12-16 20:06:08
问题 We're seeing a few exceptions with the message Default FirebaseApp is not initialized in this process com.example.app. Make sure to call FirebaseApp.initializeApp(Context) first. in our Android app in which we just added Firebase Remote Config. The stack trace is as follows: Fatal Exception: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.app. Make sure to call FirebaseApp.initializeApp(Context) first. at com.google.firebase.FirebaseApp

Retrieve the FCM server key from the Firebase remote configuration

牧云@^-^@ 提交于 2019-12-12 03:29:01
问题 For a little project I want to send push notifications directly from the app (without a backend). As I read from the FCM documentation while this is technically possible with a simple HTTP POST request it's discouraged because in this way I have to hard-code the server key that will become easily retrievable with a little of reverse engineering. So I though to add my server key in the Firebase remote configuration and use that. What do you think? Are there some contraindications? Thank you

Is there a way to create an audience of developer builds?

≡放荡痞女 提交于 2019-12-11 02:13:33
问题 I've tried to make an audience in Firebase Analytics, with "App Version" set to "contains 'debug'". The debug version of my app appends "-debug" on the end of the Version Name string. When I run the app, though, while Firebase records data for my sessions, it does not record any for the "debug audience." What I ultimately hope to get to is a world where I can use Remote Config, creating config items that I can use in testing, but I wouldn't have to worry about accidentally leaving config

Firebase AB Test has 0 users

[亡魂溺海] 提交于 2019-12-10 14:44:52
问题 We've started an AB test using Firebase remote config. It's been over 24 hours, and it's showing "Total Users: 0" when there should have been tens of thousands of DAUs assigned to each variant. how long does it take for data to come in? is there any way to tell if it's running? If it remains at zero, what are the potential root causes? Why are people not being assigned to test variants? 回答1: Found the solution. A few dumb mistakes, but they are easy to miss because the remote config works

Firebase Remote Config fetch doesn't update values from the Cloud

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 16:37:37
问题 I'm trying to set up Firebase Remote Config for my project. I added Firebase via the Assistant. I added values to the server values on Google Cloud Console: I've created default values xml in res/xml <defaultsMap> <!-- Strings--> <entry > <key>textView_send_text</key> <value >your phrase goes here.</value> </entry> </defaultsMap> Thats my MainActivity: final private FirebaseRemoteConfig mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance(); protected void onCreate(Bundle

Firebase - is user deleted from Audience if his User property is changed

二次信任 提交于 2019-12-08 03:34:27
We have two Audiences based on the User Property which value is either true or false . And we send different Push Notifications to these 2 Audiences. At one point user's property value can be changed so I expect him to be deleted from one Audience and appear in another like it is described official docs : Using Remote Config with Analytics audiences has some limitations when audiences are not based on user properties. Specifically, users become permanent members of an audience after they are assigned to it. With user properties, you can define them so that they are only temporarily true: users

Firebase Remote Config NullPointer

主宰稳场 提交于 2019-12-07 07:04:58
问题 I'm getting the following error: 09-04 10:45:50.429 4841-4869 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3 Process: com.xxx.xxx, PID: 4841 java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Set java.util.Map.keySet()' on a null object reference at com.google.android.gms.internal.zzalt.zza(Unknown Source) at com.google.android.gms.internal.zzalt.run(Unknown Source) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent

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

南笙酒味 提交于 2019-12-07 01:46:39
问题 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 =