firebase-authentication

firebase social login not redirected to the app , ionic 3 , ios

风格不统一 提交于 2019-12-06 23:39:33
问题 I am trying to implement social login in my ionic 3 app with the help of 'firebase' authentication. I followed this artical https://javebratt.com/ionic-social-login-firebase/ I installed all the plugins(cordova-plugin-browsertab,cordova-plugin-inappbrowser ..etc) and did exactly same as in the article. Then I ran the app on both android and ios devices. in android device the facebook/google login page is opened in the 'in app browser' and it is redirected to the app successfully after the

Firebase - How to detect/observe when Firebase user verified their email like onAuthStateChanged

荒凉一梦 提交于 2019-12-06 22:26:08
问题 I understand that to check if the user's email is verified, I can use firebase.auth().onAuthStateChanged((user) => { console.log(user["emailVerified"]); }) However my problem is, I want to observe/listen and redirect to another page whenever the user verified their email address on their inbox. Based on my testing, onAuthStateChanged is triggered when user logged in, updated their profile, and logged out, but is not triggered when the user verified their email address on their inbox. Is there

how to solve Unable to find explicit activity in firebase AuthUi?

霸气de小男生 提交于 2019-12-06 22:16:27
问题 While working with firebase UI I am getting Unable to find explicit activity class com.firebase.ui.auth.KickoffActivity protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FirebaseApp.initializeApp(this); setContentView(R.layout.activity_main); FirebaseApp.initializeApp(this); mAuth=FirebaseAuth.getInstance(); mAuthListner=new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user

Firebase Data Retrieval - Edit Annotation

我的未来我决定 提交于 2019-12-06 19:55:28
I am currently working on an application where the users can save an annotation on their map and this all works great! The map location, name and subtitle are all sent to the database and the pin is put into the map. However, I am struggling to figure out how to pull this data back down from [Firebase][1] so the users are able to edit the previous information and then update it. eshirima To read data, you want to use the observe attribute from your firebase reference. This returns a snapshot consisting of your data. Since your Skatepark class already has a snapshot constructor, all you'd have

Swift - Getting error from facebook login

喜夏-厌秋 提交于 2019-12-06 16:46:13
just to start off with I have looked at many examples but can't seem to find a solution. Well I thought I did but it doesn't seem to work. What I'm trying to do is use the Firebase auth login method for facebook, which works by the way. My issue is I want to link the password auth credentials and facebook auth credentials when the facebook method throws the error that the email/credentials already exist. I read here that I could use error.email but it doesn't give me the option to access the email.error . I might be missing something and I have spent a lot of time trying to figure it out. Here

Google Sign In with Firebase Android

别来无恙 提交于 2019-12-06 16:12:33
问题 I tried implementing Google sign in using firebase . I have gone through the documentation and watched a couple of videos but none of them worked. Whenever I click the Google Sign In button nothing happens. Also after successful login I want it to lead to the main activity. My app launches from Sign In activity. public class SignIn extends AppCompatActivity { private FirebaseAuth mAuth; private FirebaseAuth.AuthStateListener mAuthListener; private static final String TAG = "SignInActivity";

Firebase Auth state changes after creating new user

旧街凉风 提交于 2019-12-06 16:10:14
Auth state changes when a new user is created with email and password. I implement firebase.auth().onAuthStateChanged() observable to watch login state in my app. But it have tool for creating new users that reproduces de issue. After creating new user with firebase.auth().createUserWithEmailAndPassword() the observable returns the new user, wich causes my app log out. Is this normal? How can I create new users from my app without changing auth state? See the stackblitz example while creating the user using firebase.auth().createUserWithEmailAndPassword() it will automatically logged out the

Changing User Email and Password with Swift and Firebase

戏子无情 提交于 2019-12-06 16:06:34
Here's my edit button for an iOS application with swift and firebase. var ref = Firebase(url:"https://·············.firebaseio.com") @IBAction func Done(sender: AnyObject) { ref.changeEmailForUser("users/\(self.ref.authData.uid)/email", password: "users/\(self.ref.authData.uid)/provider", toNewEmail: EmailTextField.text) { (ErrorType) -> Void in if ErrorType != nil { print("There was an error processing the request") } else { print("Email changed successfully") } } ref.changePasswordForUser("users/\(self.ref.authData.uid)/email", fromOld: "users/\(self.ref.authData.uid)/provider", toNew:

Firebase Email and Password Authentication with android - User sign up

拥有回忆 提交于 2019-12-06 15:15:23
Recently created a simple sign up page for my application, the page takes the two values of email and password, checks they are valid then passes them into a firebase function to create the user. The values are being passed correctly, however, I always get the message saying "Registration Failed". The firebase connection is active and I have allowed for users to sign up using email and password authenication. I feel it is an issue with my build.gradle files, maybe having the wrong dependencies, however, I am new to Firebase and can't figure this out. Below is my Register form, build.gradle

firebase authentication error in other languages

≯℡__Kan透↙ 提交于 2019-12-06 14:56:19
问题 I am currently developing an app in Swift and I have linked firebase in order for users to signup and login. The app is supposed to be in Spanish but I can't find a way to translate the authentication errors to Spanish. Is there an option in the firebase console to enable other languages or in the plist. Any help is appreciated. 回答1: Firebase errors are not localized. You could request a feature for this via Firebase support. What you could do instead is create your own localized messages