firebase

Array or Subcollection for storing events user uploaded

佐手、 提交于 2021-02-10 16:17:50
问题 I'm creating an events app with react native. I just wanted some advice on which would be the better more performant and scalable way to structure my data model in firestore. I have 2 collections Events and Users. A user creates an event which goes into the Event collection, In my app users can then go onto the main page and view a list of events from the events collection. I also want to have a second page in the app a "users profile" page where users can view a list of their own events,

Uncaught TypeError: (0 , _firebase.auth) is not a function

北城以北 提交于 2021-02-10 16:00:34
问题 Trying to use Firebase authentication in a React app. I followed the instructions in the firbase docs. installed firebase with npm added a firebase.js file: import * as firebase from 'firebase' var config = { apiKey: "AIzaSyBUORmX2qG7BXFC4hqfKAq0Y6HMAsLTGbw", authDomain: "hardy-brooklyn.firebaseapp.com", databaseURL: "https://hardy-brooklyn.firebaseio.com", projectId: "hardy-brooklyn", storageBucket: "hardy-brooklyn.appspot.com", messagingSenderId: "392580429077" }; firebase.initializeApp

How to sync firebase users across several locations? (extension + website)

会有一股神秘感。 提交于 2021-02-10 15:19:40
问题 I'm working on chrome extension (provides main functionality) and the complementary website (mostly profile and billing related functionality) both backed with firebase backend. I'm wondering if it's possible to implement the below scenario: user logs in with the extension using firebase authentication (with firebaseUI lib) I store a token that I can use to reauthenticate that user (is there such a token?) when user opens the website, I login that user automatically with the token. While both

Using Passwords to Navigate Screens

折月煮酒 提交于 2021-02-10 15:08:19
问题 I am doing a react native + firebase app. At the moment, I am struggling to make a message pop up asking for a certain password whenever I press one of the page routers. I have 3 pages nested in an StackNavigator at App.js . As you can see on the following code, I have 3 routers to those pages (which are HelderScreen.js , LolsScreen.js and AthleanScreen.js ). Whenever I click on these routers, I want a message pop up to ask for a unique password to each of those routers. This is my Home.js

How to sum older data with new one in firebase

会有一股神秘感。 提交于 2021-02-10 14:50:44
问题 I have table named poin and kegiatan, when I input score to kegiatan, its input to poin too, the problem is when I input score to poin and sum it with older data in poin, its will looping over and over. what should I do? Btw, this is how my database and code for input score to poin look like. kegiatan + user id - poin = score poin +stringDate -userId = score reference = FirebaseDatabase.getInstance().getReference(); reference.child("poin").child(stringdate).child(nama).addValueEventListener

FirebaseRemoteConfig getString returns empty but bytearray of remote config is not empty

☆樱花仙子☆ 提交于 2021-02-10 14:50:44
问题 At first image, I stopped application where I try to get some data from FirebaseRemoteConfig. The code I evaluated is a simple code to get string from FirebaseRemoteConfig. But it returns empty string. Then in second image I go a bit deep inside of FirebaseRemoteConfig object, and find out that the hashmap of zzogi.zzogw.get("configns:firebase") has what I need. Why remoteConfig.getString() does not return my value even though remoteConfig have the value? FYI this is gradle lines

How to sum older data with new one in firebase

守給你的承諾、 提交于 2021-02-10 14:49:18
问题 I have table named poin and kegiatan, when I input score to kegiatan, its input to poin too, the problem is when I input score to poin and sum it with older data in poin, its will looping over and over. what should I do? Btw, this is how my database and code for input score to poin look like. kegiatan + user id - poin = score poin +stringDate -userId = score reference = FirebaseDatabase.getInstance().getReference(); reference.child("poin").child(stringdate).child(nama).addValueEventListener

FirebaseRemoteConfig getString returns empty but bytearray of remote config is not empty

时光总嘲笑我的痴心妄想 提交于 2021-02-10 14:49:15
问题 At first image, I stopped application where I try to get some data from FirebaseRemoteConfig. The code I evaluated is a simple code to get string from FirebaseRemoteConfig. But it returns empty string. Then in second image I go a bit deep inside of FirebaseRemoteConfig object, and find out that the hashmap of zzogi.zzogw.get("configns:firebase") has what I need. Why remoteConfig.getString() does not return my value even though remoteConfig have the value? FYI this is gradle lines

Firebase vs Google Cloud SQL for Laravel [closed]

好久不见. 提交于 2021-02-10 14:39:59
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago . Improve this question I've already read a lot about it, but I'm particularly interested for Laravel and its price difference. We run a web application based on Laravel and this already with the Google Cloud App Engine. For our web application we need a solid database. Here the

Returning List from Firestore Listen callback

这一生的挚爱 提交于 2021-02-10 14:39:34
问题 I have a function in firebase that is intended to get all documents in a collection called history and add it to a list intended to be returned. The problem is, and I think this is because .listen() is async, the list returned is always empty. I know the data is queried correctly because I can print the doc in the forEach function, but adding to a list outside doesn't work. By the way, myStream is a snapshot of the history collection in FireStore. Does my function need to be a Future? How can