Hello i want to get a profile Url from the Firebase OAuth response, currently firebase give this about the profile : Have you any idea if its possible ? (I work with a serverless project) Answer You will get additional user info when the sign in attempt resolves: For more on this, check firebase.auth.UserCredential.
Tag: firebase
How can I check if user exists in Firebase?
I finally got my authentication to work in terms of creating users and logging in and out. But now, I want to implement something that checks if the user already exists in Firebase. I’ve looked it up but can’t seem to find a concrete answer. For example, if my email address is: abc12@gmail.com and someone else tries to signup with
Upload a photo to Firebase Storage with Image URI
I am currently attempting to upload a photo to my Firebase app’s storage in my Apache Cordova app. I currently get the photo’s URI with the following code: And then am attempting to convert the image into a file and push it to my Firebase storage with the following function: I have both the file and the camera cordova plugins
Add field separately to firestore document
The following code creates a firestore collection and adds data to it: I want to create another function which adds a field to the document at a different time. I have the following function but am getting the error “TypeError: collectionRef.update is not a function” Answer Build a DocumentReference to the document you want to update, then use the update()
How do I use firebase storage from a client side React app?
I’m trying to write a file into cloud storage from within my React app. I created a new React app using the create-react-app tool. I believe I have followed the correct instructions to get a storage reference, with code like this: this.storage = firebase.storage();. But, no matter how I configure firebase and no matter what I import, I see this
How to determine if JEST is running the code or not?
I am creating a JS test on my react-native project. I’m specifically using firebase for react native, in which I would like to replace firebase instance with a mockfirebase instance if JS is running the code of my class. For example I have class setup like below. I’d like to have a check if jest is the running environment then
Firebase Auth: Edit UID
Is it possible to to change a user’s UID in Firebase programmatically? There can’t seem to be a way to do so manually within Firebase’s console. Answer TL;DR: If you need to specify the UID, you’ll need to create a new user with that UID. You can’t directly change the UID, but I was able to hack something together using
Firebase Cloud Functions for Firestore are not triggering
Cannot get Firebase Cloud Functions for Firestore to trigger on onWrite of my collection. Trying to setup device to device push notification for chat app. Function is deployed and on Pay as you go plan, however, changes in document, updates or create in “chats” collection is not triggering. Firebase cloud messaging is supposed to send a push and write to
Firebase firestore cloud functions showing Error: Invalid use of type “undefined” as a Firestore argument
I have a project to add currency details into the firestore database and my project is doing with ionic 3 Whenever I add a new document to the collection a trigger function onCreate() will execute and update the document named ‘updated’. But the trigger function always showing an error. sombody please help.. i have spent lot of time on it.
How to send FCM notification to all android devices using Node.js
I want to send the notification to my Android app developed using Ionic t from Node.Js code. I have tried following code and getting Exactly one of topic, token or condition is required. How can I send notification all my users without any condition? Answer If you want to send a notification to all users, then the best thing is