How to get current logged in user's email with Flutter Firebase? - firebase

Currently, I am trying to build a simple android app, along the process its quite successful with the firebase authentication. But now I faced one problem where I wanted to show the logged in user's email in my drawer widget that I used to sign in with firebase authentication but I just cant find the solution up to date. I cant show any working code because I cant find any usable examples online. Can anyone of you help me please ?

Related

How to create teams in firebase crashlytics after migration from fabric?

I have migrated from fabric to firebase by connecting apps via console but I am not getting crash report emails from firebase. I added different users from "Users and Permissions" as suggested here. But I am still not getting email notifications on crash. I tried creating custom role from google cloud console but I am not able to see that in my firebase console. Only case where I am getting mails is when I am adding new user as "Owner" which I think is not right because it would mean I should give full access to all team members. Has anyone faced such issue before?
P.S.: Crashes are logged in console but I am not getting email notifications on crash.
You can configure your email preferences from Alert Settings under the alert icon on the top left of the console. What does this window look like in your firebase console?
Next you need to have at least view permissions on the project to receive e-mail notification. Project owners and editors get email alerts by default. More information on this can be found here.

This user's credential isn't valid for this project, Error on confirmResult.confirm(codeInput) in react-native-firebase

This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.
Everything working fine without any changes today I get above error, When I send request for verification code get success from signInWithPhoneNumber but verification code didn't getting.
I tried with adding test number in firebase console but get same error.
Let me know if any know how to fixed that.
Thanks in advance!
Clearing the cash of google play services to solve it.
This happens when I uninstall and reinstall the app multiple times and signing in into multiple accounts and change the system clock frequently for testing.

Firebase is allowing anything with an # symbol register in my app

I'm building an app for an online course, but I like to take their skeleton and make it better to add to my portfolio, adding features. They're teaching Firebase in this section and building a chat app... When I see their video they use "1#2.com" as their email, which doesn't seem like a real email, so I tried it in mine, and I noticed that Firebase is allowing me to use a random assortment of whatever, so an obviously not real email "ajflkdsajffadjslfj123412djflakjdf#hotmail.com" to register. I've skimmed through the firebase docs and didn't see anything that says how to check if the email is actually an email.
Technically that could be a valid mail, so there is nothing Firebase can do to check every mails if they are valid or not. What you could do though is to send an email verification to the user and if they verify their account then they can use your application.
Email Verification in Firebase Auth documentation for that can be found here.

App is not verified when using Google Provider in firebase login

I used firebase.auth.signInWithPopup() from this documentation. However, I am getting this warning on the popup window saying that my app isn't verified yet. See image below.
I don't know where to start from here since as far as I can remember, I can't find anything about this on the firebase auth docs. Any advice?
Google now requires apps be verified when you request certain sensitive data:
https://developers.googleblog.com/2017/07/new-security-protections-to-reduce-risk.html
Firebase is not exempt. Why should it be? Any attacker can create a Firebase account with Google provider enabled and try to phish Google users with it.
Verify your app through this link OAuth consent screen

React Native and Firebase authentication

I want to make a login/sign in page that navigate to another page if the user enter the correct credentials using react native and Firebase . I enabled the authentication using email in the Firebase console, but I get an alert every time like in this image:
By searching in the internet, I found possible solutions like verifying that I'm using the right database in my app, but it didn't work.
My code is here : https://github.com/haifaGh/AuthenticationFirebase
Not sure what you have done wrong, but few days ago i started firebase app for my own purpose, so you can check how have i done login and sign up.
https://github.com/dratwas/react-native-firebase-chat/pull/10/files
there is example in pr.

Resources