firebase

How to add custom fields and business logics in firebase auth UI Android?

允我心安 提交于 2021-02-11 15:20:45
问题 I'm using firebase's pre-build auth UI and which seems very helpful to me reducing a lot of boilerplate code. But I'm facing some limitations. For email registration using prebuild auth UI, there are only the three fields I'm getting ( Email, First and last name, password ) showing the attached image below. But I need to add some extra fields ( Address, Postal code, etc ) and apply some business logic like confirm password , password strength check , etc. I got a solution from another

Firebase firestore server timestamp without importing all of firebase to my web project?

一个人想着一个人 提交于 2021-02-11 15:14:02
问题 I am using Firebase in a React web app and I need to use firebase.firestore.FieldValue.serverTimestamp() and some other methods. However to get a firebase reference I import import * as firebase from "firebase"; Doing this import gives me the following console warning: It looks like you're using the development build of the Firebase JS SDK. When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use. For the module builds, these

Node.JS Firebase Auth - Is there a way to keep a user session like with client side Firebase Auth?

[亡魂溺海] 提交于 2021-02-11 14:59:52
问题 I am learning Node.JS and I am trying to bring Firebase Auth into my application. With client-side firebase auth, you can just do firebase.auth().currentUser but in node, as the script is not run on the client, but once on the server, you cannot use firebase.auth().currentUser . Is there a way involving sessions or cookies (I think) to get user data and use normal Firebase Auth operations from node just like client side Firebase Auth? (I am using express with Node) 回答1: As you've found there

How to use the same Firebase Auth for Two different Flutter apps?

喜夏-厌秋 提交于 2021-02-11 14:59:03
问题 I developed two different Flutter applications. An Admin Version and another Client Version. I would like to use the same login (auth) and access to Storage for both Apps. 回答1: It's definitely possible to access the same Firebase project from two different apps. In fact, when these apps are locally part of the same "application", that is actually an intended use-case. A few things to keep in mind though: Firebase Authentication does not have the concept of an administrator user. It "merely"

Ionic: Is it possible to delay incoming push FCM push notification from showing to my device until a specific time

与世无争的帅哥 提交于 2021-02-11 14:55:32
问题 So i am using Firebase for my project. And what is does is that every time a new record is added into a specific collection in Firestore, my Firebase Function will be triggered thus sending the push notification into the devices of users who are subscribe to a specific topic. Here is the code that i used for Firebase Function: exports.sendNotifications = functions.firestore .document('notifications/{sessionId}').onCreate(async event => { const newValue = event.data(); // Gets data from the

how to fix firebase error UISearchdisplayController is no longer supported. Migrate to UISearchController.?

大城市里の小女人 提交于 2021-02-11 14:54:37
问题 Xcode 11.3 version Xamarin.iOS version: 13.10.0.17 (Visual Studio Community) Xamarin.Firebase.iOS.Auth version: 5.0.4.1 Xamarin.Firebase.iOS.CloudFirestore version: 0.13.3 Xamarin.Firebase.iOS.Core version: 5.1.8 I have noticed this crash recently, only with app store distributed version [Test flight build] The two crazy things are for me : I’m not using “UISearchDisplayController” but the required new “UISearchController”. Why is not crashing in local, but only on the AppStore version ? Same

Firestore Security Rules Permission Issue

限于喜欢 提交于 2021-02-11 14:52:38
问题 I have documents in firestore collection called 'inventories' of the following structure: { creator: string, images: string[], } the creator field is the uid of the user who created the document. In my firestore rules section I have the following rules: service cloud.firestore { match /databases/{database}/documents { match /inventories/{inventoryid} { allow read, write: if request.auth.id == resource.data.creator; } } } In my ionic application I do the following: this.inventoryCollection =

FCM and self-certificate issue (reopen)

主宰稳场 提交于 2021-02-11 14:49:13
问题 I'm using FCM to send a notification, my code works well when I use HTTP. The issue happened when I enable SSL using self-certificate, I cannot call subscribe/unsubscribe to/from a topic on FCM with error UNKOWN code. Any idea this issues please help I'm trying to debug so I can get access-token but cannot call sub/unsubscribe This is the request to get access-token 2020-12-02T16:06:24.192Z|2|INFO|fcm-demo|c5230eb4f07f582a,9b72559f0d3b8e39,true,|9|task-2|com.google.api.client.http

How do I get files synchronized from Firebase in Android?

回眸只為那壹抹淺笑 提交于 2021-02-11 14:43:04
问题 I am trying to make an application that works with audio files. I have to import and merge audio files from Firebase in a part of the application. Here is the code block from merge operations; protected void combine() { String randomFileName = String.valueOf(System.currentTimeMillis()); lastRecordedFilePath = Environment.getExternalStorageDirectory() + "/MueasycoCombinedAudios/" + randomFileName + ".wav"; lastRecordedFileName = randomFileName + ".wav"; File folder = new File(Environment

Firebase realtime database: How to listen to a specific subset of items of a node?

十年热恋 提交于 2021-02-11 14:43:00
问题 I have the following structure within my firebase realtime database: artists ArtistID name listOfPaintings PaintingID1 PaintingID2 paintings (there can be PaintingID1 copies price PaintingID2 copies price ... PaintingIDX copies price Now I want to listen for changes of specific paintingIDs and specific ArtistIDs. For example I want to listen to PaintingID1, PaintingID6, PaintingID7, PaintingID11. My repository code so far: override fun observeThisPainting(painting: Painting,