I want connect my firebase information with my mail - firebase

I just created a contact form and I use firebase realtime database to get the information of the website visitor who want to contact me.
and now I want receive an email with the information form firebase each time a visitor send a contact submission from the web site.
how can I connect firebase realtime database with my email?
thank you

I hope this will help you achieve your desired functionality.
One way of doing is by using Firebase Cloud Functions. You state that you want to receive an email after a user persists information to firebase Realtime database. I suggest have a thorough look at Firebase Cloud Functions and look under firebase real-time database triggers. These functions get executed or are triggered after an operation(delete, update, write) occurs within the database. Also have a look at Firebase Functions Send Email for how to implement the email sending part.

Related

how to send bulk emails from firebase console?

I am trying to find the feature in firebase console to send bulk emails to the registered users in the firebase. But not able to find one.
Please suggest me how can I send the bulk emails through the firebase console to the registered users with the email ids in the Firebase Authentication
There is no built-in feature to send bulk emails from Firebase. The only built-in email sending capacity is around signing in with Firebase Authentication, and the contents of those emails is tightly controlled by Firebase to prevent it being used for sending spam.
If you want to send your own emails from Firebase you'll have to build it on top of Firebase, typically using Cloud Functions as sending email reliably is best done from a trusted environment.
Two examples of sending emails from Firebase:
Using the trigger email extension, which sends an email when data is written to the Firestore database.
Using the email confirmation sample for Cloud Functions, which works similarly as the extension.
Both of these require you to provide your own SMTP server details, which means you are in control of abuse prevention.

Will my firebase cloud messaging API still work after my realtime database has been deactivated?

I received an e-mail from firebase-noreply #google.com to the tune of:
[Firebase] Your unused Realtime Database ‘my secret’ will be deactivated in 14 day(s)
We've detected the following issue(s) with your security rules:
any logged-in user can read your entire database
any logged-in user can write to your entire database
I have an app on my Raspberry Pi which is available by web, that will send a firebase message to my mobile phone. It will enable a user (any friend of mine that I chose to tell the url to) to track my position. The webpage on my Rpi contains the API key.
Following this e-mail, should I still expect my app to work?
It's a while since I wrote the app but I do find it occasionally useful. The link that firebase sent me to edit my security settings doesn't work. I think I only had an entry in the firebase realtime database to enable me to get an API key. Please forgive me if I am asking a daft question but it has been years since I worked on this.
firebaser here
The email is specific to the Firebase Realtime Database of your project, and won't affect Firebase Cloud Messaging in any way. If calls to FCM succeed before the database is disabled, they will continue to succeed after the database is disabled.
Of course, if your app needs to interact with the database to do its work, that will stop to function when the database is disabled.

Email verification without having a FirebaseUser

I'm trying to send a verification email without having a firebaseUser, is it possible ?
I know i can do it with user.sendEmailVerification() method but can i do it just by giving an email from a textfield ?
Based on what I knew and what I've read from the documentation, it looks like it's not possible to do this. A Firebase user, a.k.a an user authenticated within Firebase platform is required if you want to send email verification that uses Firebase Email Vetification service.
Well, do not lose hope since there are plenty workarounds to do this. What I would do to achieve this is to use Firebase Cloud Functions to create serverless API platform. I connect Firebase Cloud Functions with Firebase Admin SDK (which also has access to other Firebase services if I am not mistaken).
I send an email using some kind of email service providers such as SendGrid to designated email address (which the app got from user's inputted email) and provide a link to verify there (in the e-mail that sent to designated email address). Then, in the cloud functions, you leverage Firebase Admin SDK to change verification status.
This approach is flexible though, as it can be used to verify a user not only with Firebase Authentication.
Hope it helps. If it's not clear for you, just comment.
Happy coding.
EDIT: After thoroughly read your question again, I realized that my answer is not fully correct. Somehow you still need a specific user to be added within Firebase Authentication database, which you would not want to do manually and let your app do so instead. Perhaps you can use Firebase Admin SDK in this matter. You can read official Firebase documentation for more information regarding Admin SDK.

Dialogflow retrieving data from Firebase Real time database

Currently I'm working on a mobile app using Ionic and Angular2 with Realtime database service from firebase. I want to make a chatbot using Dialogflow to analyze the user request (i.e. I need a wheelchair) and then analyze the firebase db for any similar items stored, and if it exists, I need to show the item's name and the uid of the user who has added it into the database.
Have seen some tutorials on Dialogflow with Cloud Firestore but I'm not sure whether this works with the Realtime DB and how it would work.
Thanks in advance. 😊
To do this, you'll need to use a fulfillment webhook that will be sent the information about what the user has said, does the database search, and sends the reply using Dialogflow's response JSON format.

How can I access user data stored in Firebase using Google Assistant?

I have some user data stored in Firebase in users/userID/data
I'm using Dialogflow to recognize for example the following intent:
retrieve my email
which triggers a webhook and passes as parameter email, which is the data the user wants to retrieve. How to I pass the firebase userID? I guess I need to implement some kind of logging for the Google Assistant, but I cannot find how can I link the Firebase user account to google actions and how would I get this firebase userID
Is there a standard or recommend way to achieve this?
There is no pre-built solution for this right now.
You will need to implement Account Linking with the Google Assistant.It was done this way to give you, and your users, maximum flexibility. You'll be able to authenticate them using a variety of methods, not just Google Auth, and users are able to use a Google identity for you that may be different than the one they use for the Assistant. Account Linking will associate them without revealing to you which account they use on the Assistant.
This means creating an OAuth server that lets users log in using their Firebase account and issuing tokens to the Assistant. Google does provide some information about the procedure you should follow when creating your OAuth server, and you should be able to create this using Firebase Hosting and Firebase Cloud Functions.
Then, each time the Assistant calls your action, it will send the tokens back to you. You would use this token to determine the Firebase userid and then can look them up in the database.

Resources