firebase-authentication

Cannot resolve error in Firebase Chat application

烂漫一生 提交于 2020-01-07 04:47:11
问题 Im trying chat application using firebase. Im getting following error which could nit resolve myself, Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzble.class I have mentioned below my gradle file dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2

Javascript and Firebase Error “This operation is not supported in the environment this application is running on. ”location.protocol“”

 ̄綄美尐妖づ 提交于 2020-01-07 04:38:25
问题 I am trying to write a pure javascript web app with firebase login through google auth, when I setup the auth in javascript I get the error "This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.". I am not sure what do to. Here is my code (I removed my id's and whatnot): <script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script> <script> // Initialize

Authentication issue with migrating AngularJS application and Firebase 2.x.x to Firebase 3.x.x

浪尽此生 提交于 2020-01-07 03:24:10
问题 I am using Firebase 2.x.x to persist data with my AngularJS application. I have been migrating my app to the new console. The authentication failed with the following error: Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth/. So I have been looking up the following resources. And it seems I will need to refactor the code in the following files: index.html app.js AND the 2 files (auth.ctr.js and auth.tpl

How to check value in realtime database (ON/OFF)

我们两清 提交于 2020-01-06 11:17:08
问题 How i can in this code @Override protected void onStart() { super.onStart(); //if the user is already signed in //we will close this activity //and take the user to profile activity if (mAuth.getCurrentUser() != null) { finish(); startActivity(new Intent(this, ActivitySplash.class)); } } make check whether the child (userId) is set to ON / OFF and if ON then we run the code if (mAuth.getCurrentUser() != null) { finish(); startActivity(new Intent(this, ActivitySplash.class)); } if OFF then we

How do I bypass the welcome screen UI and present only the phone auth UI screen in Firebase Auth?

笑着哭i 提交于 2020-01-06 09:04:00
问题 How can I present the viewController which is responsible for collecting phone number data in FirebaseUI rather than the welcome screen? With the current set up I am presented with a Welcome screen. class Login: UIViewController, FUIAuthDelegate { let authUI = FUIAuth.defaultAuthUI() override func viewDidAppear(_ animated: Bool) { let phoneProvider = FUIPhoneAuth(authUI: authUI!) authUI!.isSignInWithEmailHidden = true authUI!.providers = [phoneProvider] let vc = authUI?.authViewController()

Getting Null Object Reference on getCurrentUser().getUid() on Fragment [duplicate]

落爺英雄遲暮 提交于 2020-01-06 08:48:14
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 12 months ago . I'm creating a clone of WhatsApp and on the MainActivity there are 4 fragments side-by-side: Chats, Groups, Contacts and Requests. The last one developed was the ChatsFragment. On it's onCreateView it gives the error on currentUserId = mAuth.getCurrentUser().getUid() with the error of java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang

How to get AuthResult in flutter Firebase UI to find additionalUserInfo

匆匆过客 提交于 2020-01-06 08:05:49
问题 I am new to flutter and using sample code that does signIn, I get the user, but I need to find if the user has previously used the App ( and then uninstalled) or using on a new device. I see another question that gets the AuthResult as shown below, AuthResult authResult = await _auth.signInWithCredential(credential); if (authResult.additionalUserInfo.isNewUser) { //User logging in for the first time // Redirect user to tutorial } else { //User has already logged in before. //Show user profile

How to update Only Email Address in Firebase Authentication For iOS Swift 4

ぃ、小莉子 提交于 2020-01-06 08:01:15
问题 i just want to update authenticate email address of current user. i have tried lot's of solution like updateEmail method of firebase but it not work !! if any one know then please tell me how can i achieved this Thanks in advance !! @IBAction func btnResetEmailClick(_ sender: UIButton) { let auth = Auth.auth() guard let email = self.txtEmailAddress.text ?? auth.currentUser?.email else { return } // email that i have to update with current user email auth.currentUser?.updateEmail(to: (auth

Get the current user logged in Angular - Firebase

懵懂的女人 提交于 2020-01-06 08:00:54
问题 I need to get the user id logged into my web application, this is my auth service.ts: export class AuthService { private authState: Observable<firebase.User>; public currentUser: firebase.User = null; constructor( public afAuth: AngularFireAuth, public firestore: AngularFirestore, private router: Router) { this.authState = this.afAuth.authState; this.authState.subscribe(user => { if (user) { this.currentUser = user; console.log('AUTHSTATE USER', user.uid); //this works this.router.navigate([

How to delete firebase Authentication Users from Android App?

非 Y 不嫁゛ 提交于 2020-01-06 06:47:48
问题 Firebase dashboard view here I need to remove A user from firebase authenticated Users list - using my mobile application. Authentication method is email and password authentication. 回答1: If you want to allow application to delete user in the console, there is no pure client-side solution. As far as i've known, there are two option. User Firebase cloud function to delete user when specific event occur to Firebase database. Create backend with Admin SDK and build endpoints for user to call an