Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [firebase]

Firebase is a serverless platform for unified development of applications for mobile devices and for the Web.

0
votes
0answers
2 views

JavaScript - Firebase value to global variable. ALMOST SOLVED

ref.child("path").on("value", snapshot => { var z = Object.keys(snapshot.val())[2]; y = snapshot.val()[z]; //Call the friggin thing exportData(y); function ...
0
votes
0answers
2 views

How to add dependencies to Google Cloud function?

I have a Google Cloud function which I created interactively via the web console. I am trying to use it to query a Firestore, but first I need to add the firebase-admin and firebase-functions npm ...
0
votes
0answers
3 views

create/update/delete Firebase Realtime Database rules

I have created a working method for create/update/delete of user chat messages. I wonder if there is a way to reduce my logic. ".write": "(!data.exists() && newData.child('uid').val() == auth....
0
votes
0answers
11 views

How can I use async on angularListObservable<any[]>

I am using Angular 6 for this project. My feed.component.ts file: import { Component, OnInit, OnChanges } from '@angular/core'; import { ChatService } from '../services/chat.service'; import { ...
0
votes
0answers
4 views

NestJS Firebase C

I am integrating Nestjs with firebase admin, the controller is not updating the view. With the service there is not problem, update in real time. Someone will have some suggestion, what is my wrong ...
0
votes
2answers
14 views

Firebase storage, cannot get download url successfully. (Android)

this is my code so far. public void getimage() { FirebaseStorage storagi = FirebaseStorage.getInstance(); StorageReference imagerefi = storagi.getReference(); userimage = (ImageView) ...
0
votes
0answers
5 views

Override not working on onNewTask() in FirebaseMessagingService

I've just installed Firebase in my Android app to enable push notifications. I confirmed it's working by sending a push notification from the Firebase console to all devices running the app. Now I'm ...
2
votes
1answer
15 views

How to query for more than one item in an array in Firestore? (“array-contains”)

I am building a 1-to-1 chat application with Firestore and Javascript (vue.js). I have a conversation and a message document defined as follows: .collection("coversation").doc() conversation: { ...
0
votes
0answers
5 views

firebase project not present in cli projects list

trying to host my angular 6 project to firebase, i used the cli to login and then i issue: firebase init the cli presents list of options, of which i pick "Host" i go through the different options, ...
0
votes
1answer
12 views

Cannot modify a WriteBatch that has been committed in cloud functions

I am deploying this code on cloud functions, getting Cannot modify a WriteBatch that has been committed, I have tried committing after getting every collection but it's not a right way and is ...
0
votes
0answers
8 views

signInWithRedirect with GoogleAuthProvider gets white screen on safari when I select the account manually

When I want to login by google ( in my Angular 6 web app ) in Safari from ios (11.4): 1st=> I put email and password manually and then I get a pretty white screen with the url __/auth/handler 2nd=> ...
0
votes
1answer
7 views

Ionic cordova camera plugin crashes intermittently after a picture is taken (with Firebase image upload)

uploadImage(filePath: string, camera: boolean = false) { try { let options: CameraOptions; if (camera) { options = { quality: 40, destinationType: this._camera.DestinationType....
0
votes
1answer
14 views

React async login with social media

Im trying to add a login with social media on my website but I got some erros because the case is returning first than my http request(firebase) 'firebase.auth().signInWithPopup' how can I use async ...
1
vote
0answers
12 views

How to fix Pyrebase keyrror

I have this following line of code to get each entry in my likes/north_america node in firebase: all_trending = db.child("likes/north_america").order_by_child("release/date").get() And this returns,...
0
votes
0answers
13 views

Pagination infinite loop with two images Firebase issue

I was watching a youtube video on pagination and he ordered them by "score", in my code I ordered them by a "timestamp". First time running it in the simulator the images come out nicely until I ...
0
votes
1answer
11 views

<FIRMessaging/WARNING> Failed to subscribe to topic Error Domain=com.google.fcm Code=5 “(null)”

I'm not able to receive notifications in iOS. I coded my application in ionic framework and apparently Firebase doesn't officially support ionic. Any ideas on how to resolve the issue. Here what I'...
0
votes
0answers
6 views

Cannot read ios message from firebase push notification in ionic app

I'm Just setting up push notifications for my app. They've been working welll on android for months and they display a toast when they come in while the app is open. I've been trying to enable them on ...
0
votes
0answers
14 views

Cloud Firestore scaling

I'm thinking about using either Firebase realtime database or Cloud Firestore for my next project. Actually I'm very happy with Firebase realtime DB, and I like its prices, but Cloud Firestore ...
0
votes
0answers
7 views

Unable to add SHA-1 key IONIC Firebase console

I am not able to log in using facebook and google in my IONIC 3 app. Login works fine when running on the emulator, but when I run the command for the prod release android, login does not work. The ...
0
votes
0answers
18 views

How to only update new data from firebase android?

I new with Firebase , and also have a problem. I have RecyclerView, it does run great until I'm adding new child on the realtimedatabase. The data that I adding is accumulate or doubled. Example I ...
0
votes
1answer
10 views

TypeError: Cannot read property 'map' of null. Ionic 3 typescript

So i am trying to add markers to my Map using data provided from firebase and i get the above error. I checked the other threads but found no solution for my problem. Some suggested it is broken ...
1
vote
0answers
6 views

Error while finalizing cipher with EasyCrypt library on another device

I am trying to decrypt a voice file after encrypting it, uploading it to Firebase then downloading it. and for the encryption/decryption I am using EasyCrypt The encrypting and uploading done ...
0
votes
1answer
26 views

Firebase comments not appearing on database

I'm new to Firebase. I'm using Swift. I want to store user's comments on my database however nothing seems to shows up on Firebase. Is something wrong with my code? Thanks for any help. @IBAction ...
0
votes
0answers
20 views

How to list all Document collections in firestore? [duplicate]

Is it possible to list all collections of a DocumentReference? I found old questions but all answers are outdated by Firestore SDK or require that I already know the name of collections. ref: ...
0
votes
0answers
26 views

Image url in FirebaseStorage does not exist., ResponseErrorDomain=com.google.HTTPStatus, ResponseErrorCode=404}?

I have code which saves multiple images into firebase. I updated my pods, and after this I had to change my downloadURL code. After doing so the urls are not showing up in the database, neither is the ...
1
vote
1answer
21 views

vue-cli v3 with node.js firebase functions, firebase hosting (Error: No npm package found in functions source directory)

I'd like to use Vue.js for Frontend and Firebase Functions (Express.js) + Firestore on Backend. 0-step: I created a new project on Google Firebase, I created a new Service Account with Owner's ...
0
votes
0answers
15 views

Unable to Push Notifications to the users on using FCM on write event inside the firebase realtime database in android

Hello everyone I'm new to firebase I'm facing a problem in my android app the problem is that I'm trying to make cloud function that will be invoked whenever there is a change in the node of my ...
2
votes
1answer
29 views

Working on single Firebase project from two machines

I have a single project which is synced on two different machines. I have Android Studio and the emulator successfully installed on both machines. I also have successfully implemented Firebase + ...
0
votes
1answer
23 views

getaddrinfo ENOTFOUND www.google.com www.google.com:80

My question is a follow up of Do I need a paid plan for using recaptcha on firebase function? I find myself in the same situation : I need to use firebase cloud function with Google Recaptcha API. ...
-2
votes
0answers
21 views

Android App doesn't receive notification on Oreo one plus 6

here is error log W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.packagename (has extras) }
0
votes
0answers
24 views

Firestore social schema [duplicate]

I am trying to design a social media schema for Firestore but facing issues with finding a workaround with Firestore's lack of "in" query. For example, if you want a feed of the posts from people ...
2
votes
0answers
31 views

Data is not being saved into firebase after updating code to firebase 5.0?

I have code which saves multiple images into firebase. I updated my pods, and after this I had to change my downloadURL code. After doing so the urls are not showing up in the database, neither is the ...
0
votes
2answers
20 views

Firebase Crashlytics do not sync with my android project

I am trying to start Firebase Crashlytics in my android project but for some reason the crashlytics dashboard do not refresh after running the project in a real device, I can not get past this window ,...
0
votes
0answers
13 views

Recyclerview StaggeredGridLayoutManager endless scroll

I want to use endless scroll and I did this but if I can use gridlayoutmanager this is very good endless scroll but if I use staggeredlayout manager this always scroll top why? when I image height ...
0
votes
1answer
19 views

Firestore security rule not working

I have the following rule in my Firestore service cloud.firestore { match /databases/{database}/documents { match /users/{userId}/{documents=**} { // Only the authenticated ...
0
votes
0answers
9 views

Unity Pass Function As Parameter For Firebase Database Listeners

I have a Unity project with the Firebase Database SDK. To retrieve data from the database, listeners are used. I have just found that the all in one listener "ValueChanged" isn't going to work how I ...
-1
votes
0answers
21 views

An Internal Error has Occurred.[Request from this android client application are blocked]

This is the error my client is getting while authenticating its mobile number through firebase. I searched on internet for solution but couldn't find any. Please answer if anyone knows the solution. ...
2
votes
1answer
25 views

Firebase Functions not sending Notification

I have been using Functions for about 2 weeks on one of my news applications. However I have created a second news application with different news. The invocation of the PN happens using a web hook ...
0
votes
0answers
12 views

Firebase storage images caching to memory but not disk

Im woking with swift. My database setup. In my database I am saving the URL to the stored image in Firebase storage. I then use the URL to download and update UIImageviews which works nicely ...
0
votes
1answer
35 views

Firebase database returns wrong data

In firebase database I am having a node named userDetails where I am storing user related data. In android while fetching current user data, it returns correct values for first time. Now after sign ...
0
votes
2answers
26 views

Android, on finish loading data from firebase

How to show the Progressbar on start of the activity that contains recycler view which should be hidden once the recycler view loads the data from firebase database? In onCreate method I am showing ...
0
votes
0answers
13 views

How to Send Push Notification to the Specific User Using Firebase Unity-Android

I am doing push notifications in Unity 2018 using Firebase in Android. Sending push notifications to all users worked properly, but I want to know how to send push notifications to one specific user. ...
-2
votes
0answers
15 views

license manager for iOS app

I am currently developing an iOS app that available for free but its a very limited version I want to create a system to 3 things : registers user email after user purchases full version know if the ...
0
votes
0answers
22 views

Firebase response is received after successful sign-in but token not saved in local storage

I've written a sign in method in Angular 6.0 as front-end and firebase as back-end. The sign in was successful as I could see it in the console, but the token was not auto saved in the browser's local-...
0
votes
1answer
21 views

Android with Firebase not receiving notification from Node.js Firebase app

I have an android app that successfully receives notifications from the Firebase console. I now intend to build a nodejs server where we can send these notifications to save logging into the firebase ...
0
votes
0answers
22 views

Send Notification to a group of Users using Google Firestore

I am building an application using a Firestore database. I have my chat channels which work if I send a message it sends to everyone in that chat channel. I am unsure if how to send notification to ...
0
votes
1answer
14 views

Integrating Firebase to XCode

I'm trying to integrate Firebase to my app in XCode. In order to do so, I followed Firebase's website's commands step by step. However, when I typed in the pod init command in terminal, I got an error ...
1
vote
0answers
15 views

How to set up Checksum file in Firebase Server for Paytm Payment Gateway integration?

I am working on an application that requires PayTM Payment Gateway integration. I am integrating PayTM, but while doing that I am facing a problem in setting up PayTM Checksum kit in server, which is ...
0
votes
0answers
10 views

Fabric data not visible in Firebase Analytics

I do have some issues regarding the Fabric and Firebase integration. How long does it take for Fabric to send data (like retention, etc) to the Firebase Console? I already have setup a connection ...
1
vote
1answer
49 views

display data of every child on a single page

recyclerView = findViewById(R.id.recyclerView); database = FirebaseDatabase.getInstance(); reference_root = database.getReference("/image"); reference_grocery_and_staples = database....