FirebaseUI-Android | Optimized UI components for Firebase | Authentication library
kandi X-RAY | FirebaseUI-Android Summary
kandi X-RAY | FirebaseUI-Android Summary
FirebaseUI is an open-source library for Android that allows you to quickly connect common UI elements to Firebase APIs. A compatible FirebaseUI client is also available for iOS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a map from the country code .
- Handle sign in operation .
- Sets the adapter .
- Fetch all available providers for the given email .
- Start the user .
- Sign in log .
- Returns the selected providers .
- Handle anonymous upgrade .
- Populates the profile .
- Load a single data snapshot .
FirebaseUI-Android Key Features
FirebaseUI-Android Examples and Code Snippets
Community Discussions
Trending Discussions on FirebaseUI-Android
QUESTION
I am just starting to use Android Studio.
I have followed the steps through in the Studio. I chose "Basic Activity". The app loads, but there's nothing but empty directories there and it has no activity folder or anything to edit the layout with.
I checked it in the Windows explorer, and it just looks the same as in Android studio.
I've read this, this, this, this, this, this, and other ones, and have probably spent over an hour trying to figure out how to do this.
I've also re-tried creating the project at least 5 times, but I've had no success.
Edit: Here's what the app folder looks like:
Edit: Someone told me I should just create a new activity. Being an absolute new person, I didn't know how to do that, so I looked at this post. However, the post tells me that I need to go into the "New" menu, but I don't see "Activity" in here like the post asserted it would be.
...ANSWER
Answered 2021-Oct-27 at 20:24In the following menu click the arrow and select "Project" (is better):
Then go to "name of your project folder" > "app" > "src" > "main" > "res".
QUESTION
Lack of proper documentation on gradle method resConfigs
made me ask this question.
- In this example, google gives a specific example of how to use it with Languages.
- In this example, google mixed Languages and Drawables
- I was unable to find any javadoc like gradle doc for the same
If I specify something in front of resConfigs
, only that gets included in the final build, everything else does not get bundled into the apk.
The test app has
- Multiple languages (values-en , values-fr, ...)
- Multiple drawable folders (drawable-xxhdpi, drawable-xxxhdpi, ...)
- Multiple android versions (values-v21 , values-v7, ...)
- Multiple smallest widths(sw800, sw1000, ...)
- Multiple orientations (port,land)
- etc
Note: I used android studios' apk analyzer to deduce the following results. before every test, full clean, rebuild, and prod build was generated with proguard(shrink) enabled.
Test 1:
I specified only languages resConfigs="en", "fr"
Result 1: In the apk,
- all languages vanished except en and fr
- all other resources were present (drawables, dimens, sw, orientation ...)
Test 2:
I specified only drawables resConfigs="xxhdpi"
Result 2: In the apk,
- all languages were present
- all other resources were present (dimens, sw, orientation ...)
- all drawables vanished except xxhdpi. (all other drawable folders were present, but had 0 byte files)
Test 3:
I specified languages and drawable resConfigs="en","fr","xxhdpi"
Result 3: In the apk,
- all languages vanished except en and fr
- all other resources were present (dimens, sw, orientation ...)
- all drawables vanished except xxhdpi.
- When I only specify languages
resConfigs="en", "fr"
, why are other resources getting bundled into the apk (for eg: drawables) - Similary, when I only specify
resConfigs="xxhdpi"
, why languages and other resources get bundled - In case of gradle is using some intelligence to figure out what to exclude and what not to exclude, does there exist a list of group of resources which fall under same category, is there any documentation on it?
For eg- Language is a group, if gradle finds at least one language tag, it excludes all other languages. otherwise, includes all languages?
- Drawable is a group, if gradle finds at least one drawable tag, it excludes all other drawables. otherwise, includes all drawables?
resConfigs
only worked for me on app level gradle only. When I tried to use it on a dependent module, it ignored it completely. How to make it work on a dependent module. (I was trying to integrate firebaseUI for auth)- is
resConfigs
in early stages of development, or is it meant only for development purposes, and not to be used in prod setups?
ANSWER
Answered 2021-Mar-18 at 04:27here are a few things to keep in mind
- resConfigs works with resource qualifiers groups
- resource qualifiers are grouped in different buckets like language , dpi , platform version etc .
When you provide a resource qualifier to resConfigs then all other resources for qualifiers in that bucket will be removed. Resources in other buckets are not affected .
Please refer to the following link for all the available grouping/buckets . https://developer.android.com/guide/topics/resources/providing-resources#AlternativeResources
hope this makes sense.
QUESTION
ANSWER
Answered 2020-Aug-12 at 14:22Solved, updating the Glide version did the trick (gradle didn't notice me, but the site from the official guide said the last version was 4.11.0).
So I changed
QUESTION
I'm using FirebaseUI-Android to authenticate using Microsoft and Apple.
I choose either one of the Sign In options and a custom Chrome tab opens with the provider's authentication flow. After successfully signing in using the provider, the authentication screen is re-displayed, with a dark overlay. Pressing once dismisses the dark overlay. The top-left close button must also be pressed in order to return to my app onActivityResult is then called and sign in completes successfully
I would like to eliminate the need to dismiss the dark overlay and press the close button.
This happens with both the Microsoft auth flow and the Apple auth flow.
Here's demonstration of the behaviour: https://giphy.com/gifs/iEuTTe8ud85EpsXCpH/fullscreen
...ANSWER
Answered 2020-Jul-08 at 15:00Make sure you are not using android:taskAffinity
, all of the activities should either have the same taskAffinity
set or don't set it at all otherwise your activities can be grouped in ways you did not intend them to and can result in behaviors like you mentioned. For more information on how taskAffinity affects your activities, please have a look at this link.
QUESTION
I know this is a discussed topic, but here I am, after all other solutions I've found did not solve my problem. I saved multiple images in Firebase Storage and now I want to get one of them and put it into an ImageView
on an AlertDialog
(or another Activity).
I've read about Glide
solution, but it doesn't work for me. Gilde:
ANSWER
Answered 2020-Jul-02 at 13:53I'm not sure what's going wrong in your second snippet, but in the first snippet you seem to be passing a StorageReference
to Glide. Since Glide doesn't know anything about Firebase Storage, that won't work.
Instead, you should get a download URL from Firebase Storage, which is a regular HTTPS URL that provides public access to the data, and pass that to Glide to render in the view.
Something like:
QUESTION
Using Firebase UI for sign-in and sign-up, how do I remove the option for a user to sign-up with a first & last name? In other words, only their email and password are required.
According to this github issue, the feature to do so has been implemented.
Firebase provided Kotlin code for sign-in/sign-up:
...ANSWER
Answered 2020-Jun-01 at 16:01The pull request that implements this feature suggests that you call setRequireName(false)
on your EmailBuilder object.
QUESTION
I have read about this issue in multiple places such as here but do not know what user experience to give users.
I'm using Firebase Auth on iOS (Swift). In my app, there are only 2 ways for users to create an account:
- Email (email/password)
- Sign In with Apple
I'm not sure how to handle this scenario where Apple replaces the email provider in Firebase:
- User signs up with option #1 (Email) as
john@gmail.com
. We use the api send email verification to send an email for user to verify their email. - This user does not open email to verify their email for some reason. Therefore, the email is not verified.
- User logs out of the app.
- Instead of the user logging in with option #1 (Email), the user logs in with option #2 (Sign In with Apple). Their Apple ID email is the same as option #1 (Email):
john@gmail.com
. We use the API sign in with credential.
In this flow, Apple replaces the email provider because both their regular email and Apple ID email are the same (and the regular email was not verified). If the email is verified, Firebase links the email and Apple account automatically in this case... instead of replacing.
If you try to create an account with option #1 (Email) again later you'll get this error because it is already used with Apple:
...ANSWER
Answered 2020-Apr-09 at 07:46In that case, you call fetchSignInMethodsForEmail
to get the IdPs associated with this email. That will return a list with apple.com
provider ID. You inform the user that they need to sign in with Apple to that account.
Going forward they would need to use Apple sign-in. The only way to use both is if you verify the email (via email verification) after they sign up with email/password and before they sign in with Apple. When the account is verified, the Apple credential is merged automatically on sign-in and the password is kept on the account.
QUESTION
Base on guideline at https://github.com/firebase/FirebaseUI-Android/tree/master/firestore, I make a list items with FirestoreRecyclerAdapter but I don't know why the couldn't retrieve any data. In fact, the number view items are shown correctly, but the content always null. Anyone can help me. Below is source code:
Activity:
...ANSWER
Answered 2020-Feb-02 at 11:11You data model is not aligned with database structure. Try to update it like below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FirebaseUI-Android
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page