Questions tagged [firebase]

26137 questions
1

votes
2

answer
533

Views

Can't be upload an image in Firebase Storage in android

I'm learning to upload the an image in Firebase Storage but when i run / open my app and select an image to upload there is no any image to upload in firebase storage please help me where i mistake to write code . Androidmanifest.xml: MainActivity.java: package com.fireapp.newfireapplication; import...
LearnToProgram
1

votes
1

answer
328

Views

Android Robo test cannot find element

I want to use Robo test from google firebase for my application. My application needs login process. I want to use resource and value mapping system. I filled in the form like this However, test report says that there are no such resource names Resource name was copied from android UI Automator Vie...
John
1

votes
3

answer
4.3k

Views

how to fetch firebase data?

I am new to python and firebase and I am trying to flaten my firebase database. I have a database in this format each cat has thousands of data in it. All I want is to fetch the cat names and put them in an array. for example I want the output to be ['cat1','cat2'....] I was using this tutorial ht...
learner101
1

votes
1

answer
144

Views

How can I switch firebase configuration using toggle in react native

I am using reactnative, redux and firebase. Now i want to config two diff firebase env one is development and other one is production. I implemented a toggle to switch the firebase diff account. i put firebase config file in ./App.js import React, { Component } from 'react'; import { Provider } from...
Subrata Mallik
1

votes
1

answer
312

Views

Tracking if a User 'likes' a post

This is more of a theoretical how database should be setup, and less about programming. Lets say I have a news feed full of cards, which each contain a message and a like count. Each user is able to like a mesesage. I want it to be displayed to a user if they have already liked that particular card....
jdoej
1

votes
0

answer
332

Views

firebase value event listener nested inside another listener fetching data and get user by id

I'am trying to get post's comments from firebase database and each comment got a userId which is the publisher, Comment and User are 2 nodes completely separated, Comment contains the postId : comments -> postId -> commentId -> {comment : 'bla bla', date : 1514209400.62254, userId:'sd5f34sdf3az564e...
majd jlassi
1

votes
1

answer
219

Views

Switch Firestore ref if document does not exist

I'm trying to build the following: When a user request data, if the data does not exist, I want to provide a fallback Document. I'm using AngularFire2. Inspired by the doc here I thought I could use first the .get() method to check if the document exists then return the AngularFire2 Observable. But...
Benoit
1

votes
0

answer
80

Views

Swift - Upload/Retrieve images to/from Firebase

I want my users to be able to set their profile pictures in my application. I am holding the profile datas which contains the user's profile picture as a table view cell. However, I had problems in my code. This is my table view function: func tableView(_ tableView: UITableView, cellForRowAt indexPa...
atunaysaka
1

votes
1

answer
373

Views

Unity freezes at firebase GetAsyncValue().ContinueWith()

I have the latest firebase unity SDK - 4.3.0 My Unity version is 2017.2.0f3 In my script, if I have two calls to GetValueAsync().ContinueWith(), the first one is executed normally and the second one halts. If I somehow merge the two calls into one, the program halts at the first call. I have already...
CCS
1

votes
0

answer
360

Views

FCM Push notification not receiving in Android customized OS

Can anybody please help me to solve this issue... I have implemented the FCM functionality in my project. Its normally working in all default android OS versions. phones like moto, nexus, redmi, etc., But I have installed the same apk in oppo, vivo, one plus3, honor, etc., (customized OS). Which I...
syedjibharat
1

votes
0

answer
397

Views

How to check if user exist in Firebase real time database

I am using Firebase real time database, and I want to have something like this, Location //Reference name ------->uid //user id I will use the user uid from my SQL database not firbase push() ------->latitudeLocation ------->longitudeLocation I use this for now to update the latitude and longitude...
Lim Cho
1

votes
1

answer
291

Views

Display all posts from multiple firebase directories into recyclerView

I'm working on our thesis about classroom announcements and I got stuck into this. In my database, I have decided to put posts of different users under several categories. Categories Categories displaying posts So I have successfully displayed all the posts under one category (Class Announcements) o...
daveduya011
1

votes
0

answer
47

Views

Retrieving UserAuth data from Firebase in an Ionic project

I'm struggling to retrieve UserAuth data from firebase and presenting it on a list. I managed to put it there, but I can't get it back. I'v been around so many diffrent tutorials and tested a lot of code :( Are there any suggestions to this issue? My code looks like this. It's probably totally wrong...
Peter Bundgaard
1

votes
1

answer
485

Views

ERROR_APP_NOT_AUTHORIZED Firebase Phonenumber authentication in Ionic App

Iam getting an error unknown error verifying number Error instance: com.google.firebase.auth.FirebaseAuthException Error code: ERROR_APP_NOT_AUTHORIZED While trying to send otp in my ionic app using firebase . this.firebase.verifyPhoneNumber(this.mobileNumber, 60) .then((creds) => { console.log(cre...
Sachin
1

votes
0

answer
62

Views

Weird Scenario in Firebase Auth

I'm working on a Android app which use Firebase to authenticate users. I have faced the following scenario which looks like bit weird to me. I have logged in to my testing app few weeks ago using test account [email protected] After that I used different accounts but not that [email protected] account. After few new...
Chrishan
1

votes
0

answer
207

Views

Cloud Firestore write ops do not work unless thread is blocked

I am using Cloud Firebase Java admin API to write data into my Firestore instance. All the methods writing some data into the Firestore return an instance of ApiFuture. Now, the problem is that unless I call get() method on the returned instance, the data does not make it to the Firestore. This pro...
Dmitriy
1

votes
2

answer
485

Views

Should I try not to save Firebase Auth on LocalStorage

While preparing my web app for production I am noticing that Firebase saves a lot of users's data once they sign up/register to my app and these data is save on localStorage. What is my concern is auto generated uid, I don't want users to be able to know their own uid and I don't want that piece of...
Marketingexpert
1

votes
1

answer
161

Views

Recyclerview is not displaying anything, any ideas? Using FirestoreUI RecyclerAdapter

The code Below I seem to have done everything needed, but the recyclerview is just not being populated. I even put the Log on OnDateChange to see if it's called, and it was called once on the LogCat after I ran it on my Galaxy S6. Also, the database is public. RecyclerView chat_view; EditText mess...
Baldric Nguena
1

votes
0

answer
396

Views

How can I return a String or Array from onComplete? - Android - Firestore

I'm programming an app that needs to fetch data in the Firestore data base. I created a Recyclerview that shows the results, but when I populate it, the information never arrives. I think is because I change the value of Cervezas inside the onCompleteListener. The method cargarDatos() is in the same...
Robertino Martinez
1

votes
0

answer
194

Views

How to retrieve all children from Firebase Database

I'm trying to learn how to use Firebase by creating a simple social media application. https://i.stack.imgur.com/wfeyw.png (Here is how my database is laid out) I was able to add data to the database but I'm having trouble understanding how to retrieve data. I want to be able to retrieve all the pos...
KevinDunbar
1

votes
2

answer
656

Views

can we update query of firestore recycler adapter without setting the whole adapter again?

I am using firestore recycler adapter to populate my documents in a recycler view like below. it is working fine. How can I update the query? query = FirebaseFirestore.getInstance() .collection('partners').orderBy('mCompanyName').limit(limitValue); options = new FirestoreRecyclerOptions.Builder() .s...
Shubham Sardar
1

votes
1

answer
380

Views

How do I pass a prop into a react-router Route?

I'm trying to learn react router (v4) in depth by building a simple app with firebase, what i am doing is when a user login with google using firebase they will be redirected to another component and when they go to the root path again '/' they will no longer see the login ( i am doing this by redir...
null
1

votes
0

answer
116

Views

API Call from App Engine flexible to Firebase FCM failed

API Calls,e.g. to Firebase https://fcm.googleapis.com/fcm/send worked before switching from vm appengine-web.xml to env: flex app.yaml flexible. When deploying with mvn appengine:deploy everything is fine, but when an API call gets fired, which worked before, i get the exception below: Exception in...
quentin qweez
1

votes
0

answer
131

Views

Upload folder and all its contents recursively to firebase?

I'm trying to upload a folders contents to firebase but am hitting some errors. I'm using react-dropzone like so: Drag a file here or click to upload. In my 'handleDrop' function; onDrop(acceptedFiles, rejectedFiles) { acceptedFiles.forEach(file => { var storageRef = firebase.storage(); var fileRef...
tweetypi
1

votes
1

answer
326

Views

Cannot find module '@firebase/app-types/private'. Firebase web app

I'm developing an application with Firebase, when I try to run ionic Cordova emulate android I see the following error Cannot find module '@firebase/app-types/private' I used the firebase version 'firebase': '^4.8.0' without using angularFire. I did a lot of research and the following problem was a...
Domenico Serra
1

votes
0

answer
39

Views

How to get data synchonously in Firebase?

I have a function isDeploymentAdminAvailable(deployment){ let customQuery = { equalTo: this.selectedDeploy.key } this.authService.fnGetDataUsingCustomQuery(FirebaseDb.firebasedeploymentAdminTable, customQuery).subscribe( (rec: any) => { rec.forEach((reccord: any) => { reccord.key = reccord.$key; });...
NeoCoder
1

votes
0

answer
318

Views

Firebase setPersistenceEnabled vs keepSynced

I've read about the differences, however I am still confused. I have an app where the user can swipe to decrease a number, and as soon as that number is decreased, a timer may start. This timer runs in the background, so that if the user comes back, it will resume at its corresponding time. As soon...
Gerald Tan
1

votes
0

answer
94

Views

how to send current location to specific people in firebase database

i want to send current location to specific people in my firebase database when a button is clicked. These people change from device to device depending on which people the user has selected to get notification about the sender's location. I have a clue on what's required of me to do but i can't see...
Malusi Gcabashe
1

votes
1

answer
330

Views

Firebase: functions: Error from emulator. Error: Timeout waiting for emulator start

Unable to launch firebase serve --only functions,hosting due to following error: ⚠ functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory. ⚠ functions: Error from emulator. Error: Timeout wa...
Manoj Goel
1

votes
0

answer
367

Views

Google's access token for FCM - cloud messaging

I am following the instructions here: https://firebase.google.com/docs/cloud-messaging/auth-server I am getting the error below: Exception in thread 'main' java.lang.IllegalArgumentException: no JSON input found at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(P...
Noman
1

votes
1

answer
87

Views

Ionic + firebase error conection in login

i was trying to work with native google map of ionic to add map in my porject, after install the ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID='YOUR_ANDROID_API_KEY_IS_HERE' --variable API_KEY_FOR_IOS='YOUR_IOS_API_KEY_IS_HERE' and npm install --save @ionic-native...
Miguel Angel Frias
0

votes
0

answer
12

Views

When does firebase registration token get invalidated for iOS

If an iOS app has registered with FCM and then the user deletes the app. This deletes the token as well. When does FCM server side realise that the token is not valid anymore and when do we start getting 'not registered' error when we try to send an FCM message to that token from admin sdk? EDIT: I'...
Prasad Shinde
0

votes
0

answer
8

Views

How do I create a Firebase user from C#?

I am using Firebase, and I want to be able to create a user, get his ID, and then create his profile data. I can do this using Google.Cloud.Firestore, just the way we do it in Android. However, I want to do this from a C# web application. I have not been able to find anything that creates an auth us...
Jaime
1

votes
0

answer
19

Views

How to integrate Firebase with app in Xcode?

Every time I try to run Firebase Server in my app I get a thread signal SIGABRT. I have plugged in the code correctly as I was told. I need to know if I'm missing a critical step on maybe a Podfile issue. I have cleaned my app, deleted my screens, and started fresh, so it's not an outlet problem. I...
Kyle Davis
1

votes
2

answer
571

Views

I am trying to install [email protected] and [email protected] using npm but getting the follwoing error

UNMET PEER DEPENDENCY @angular/[email protected] ├── UNMET PEER DEPENDENCY @angular/[email protected] ├── UNMET PEER DEPENDENCY @angular/[email protected] ├── UNMET PEER DEPENDENCY @angular/[email protected] ├── UNMET PEER DEPENDENCY @angular/[email protected] and the belo...
Jayant Kaushik
1

votes
0

answer
299

Views

How do you make a storage reference in swift for Firestore

How do you create a field of type storage reference in the swift dictionary format using swift. I keep on getting an error saying that FIRStorageReference. This is the code below, photoRef is a storage reference: let newFirePhotoRef = newUserRef.collection('Photos').document() photoRef = photoRef.ch...
user372382
1

votes
0

answer
349

Views

AngularFire Authentication best practice

I am building an Angular Application using Firestore and Firebase Authentication. But I am struggling to find a great structure for the authentication process. Do you know some best practices or some public Github Repos I can take a look at? I want to build an Application that works offline and so I...
Jonathan M.
1

votes
0

answer
148

Views

Why doesn't Firebase Analytics pass IDFA if Android app can?

I'm getting app events through Firebase analytics on Android, and when I query the data in BigQuery I find that many (not all) of the devices don't have a 'resettable_device_id' (which is the IDFA according to: https://support.google.com/firebase/answer/7029846?hl=en). When I look in the app's data...
PandaZ
1

votes
0

answer
161

Views

How to use same function for Dev and Production - Firebase

I am new to firebase and cloud functions, please try to help. I have an app that uses cloud function to call external APIs. As my app is now live and consuming those APIs through cloud functions. I have to develop new features in my app using Dev environment without disturbing Live functions. There...
Noman Ali
1

votes
0

answer
884

Views

How to integrate FCM notification in VUE

I am building web application in Vue using webpack. Currently I want to integrate FCM(Firebase Cloud Messaging) notification in web app to sent notification to users. I gone through this link https://firebase.google.com/docs/web/setup?authuser=0 but I am not able to integrate it in Vue
UnmeshD

View additional questions