firebaseui

FireBaseUI Auth - how to know if account is from a new signup or existing user?

断了今生、忘了曾经 提交于 2021-02-14 18:40:53
问题 I am using firebaseUI for authentication. it essentially opens a a external activity and logs the user into firebase and sends the developer a call back in onActivityResult. It works great the problem is i need to know if the user is a new signup or an existing user. is there any kind of metadata or something i can use to know this ? here is what i have so far IN JAVA ANDROID: private void ititFireBaseUi() { AuthUI.getInstance() .signOut(getActivity()) .addOnCompleteListener(new

Theme.MaterialComponents style ruins Firebase AuthUI layout

不想你离开。 提交于 2021-02-11 17:36:05
问题 I am writing my first app in kotlin and am using FirebaseAuth & AuthUI for authentication. My login screen works perfectly, and looked like: Now I am trying to change my AppTheme's parent to "Theme.MaterialComponents.NoActionBar" (from "Theme.AppCompat.NoActionBar") but the login screen changed to: I call the login screen like so: startActivityForResult( authUI.createSignInIntentBuilder() .setAvailableProviders(providers) .build(), RC_SIGN_IN ) I tried to add .setTheme(R.style.FirebaseUI)

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

Remove First name & last name field from firebase auth - email

久未见 提交于 2021-02-11 12:20:14
问题 I am using firebase auth for my website i have enabled Google, facebook & Email based auth everything works fine, But when using Email login Users are required to enter Firstname But i don't need these details and want to keep the user login / signup process short Question : Can we remove the First & Lastname fields from firebase auth email 回答1: From the documentation it seems you can toggle the requirement to enter a name with requireDisplayName . From that link comes this example: ui.start(

How to sync firebase users across several locations? (extension + website)

会有一股神秘感。 提交于 2021-02-10 15:19:40
问题 I'm working on chrome extension (provides main functionality) and the complementary website (mostly profile and billing related functionality) both backed with firebase backend. I'm wondering if it's possible to implement the below scenario: user logs in with the extension using firebase authentication (with firebaseUI lib) I store a token that I can use to reauthenticate that user (is there such a token?) when user opens the website, I login that user automatically with the token. While both

startListening in Firebase UI

折月煮酒 提交于 2021-02-10 14:27:44
问题 My app crashes when I sign in. The issue stems from the load function. when it initiates the adapter.startListening(); I am not sure if it is from versions conflict or otherwise. please help My logcat: FATAL EXCEPTION: main Process: abcd.com.eatme, PID: 10687 java.lang.RuntimeException: Unable to start activity ComponentInfo {abcd.com.eatme/abcd.com.eatme.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.firebase.ui.database.FirebaseRecyclerAdapter

startListening in Firebase UI

半世苍凉 提交于 2021-02-10 14:27:01
问题 My app crashes when I sign in. The issue stems from the load function. when it initiates the adapter.startListening(); I am not sure if it is from versions conflict or otherwise. please help My logcat: FATAL EXCEPTION: main Process: abcd.com.eatme, PID: 10687 java.lang.RuntimeException: Unable to start activity ComponentInfo {abcd.com.eatme/abcd.com.eatme.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.firebase.ui.database.FirebaseRecyclerAdapter

Cannot retrieve data using FirebaseRecyclerOptions after upgrading to FirebaseUI 3.0

允我心安 提交于 2021-02-10 05:50:23
问题 I'm using FirebaseRecyclerOptions because I upgraded to the new FirebaseUI 3.0 version but now I cannot retrieve anything from the database. The same code used to work very well in the old FirebaseRecylcerAdapter method. It seems like it doesn't even enter onBindViewHolder . Initializations linearLayoutManager = new LinearLayoutManager(this); linearLayoutManager.setReverseLayout(true); linearLayoutManager.setStackFromEnd(true); recyclerView = findViewById(R.id.main_recycler); recyclerView

Cannot retrieve data in ascending order

一世执手 提交于 2021-02-05 10:46:07
问题 I want to retrieve data in ascending order, but received data somehow added to recyclerview in descending order. Firebase Database: What I am doing: DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference().child("/Teacher"); Query query = mDatabase.orderByChild("rating"); FirebaseRecyclerOptions<Teacher> options = new FirebaseRecyclerOptions.Builder<Teacher>() .setQuery(query, Teacher.class) .build(); FirebaseRecyclerAdapter adapter = new FirebaseRecyclerAdapter<Teacher,

How to refresh data in a Firestore Paging Adapter using Swipe Refresh Layout

蓝咒 提交于 2021-02-05 08:58:26
问题 I am building an app that i would like to fetch data from Firestore and display it in recyclerview as the user scrolls. I am using FirestorePagingAdapter as described here: https://github.com/firebase/FirebaseUI-Android/tree/master/firestore#using-the-firestorepagingadapter. This adapter does not listen for realtime changes in the database, how do I manually force a refresh using swipeRefreshLayout? 回答1: The FirestorePagingAdapter will load the data fresh from the database whenever it shows a