firebaseui

How Can I Add a Background Image for FirebaseUI Login for iOS?

房东的猫 提交于 2019-12-04 12:59:57
I'd like to be able to place a background image behind the three sign-in buttons (for Google, Facebook, and Email) of the FirebaseUI login screen. FirebaseUI login is a drop-in authentication solution for iOS, Android, and Web. I'm having trouble with iOS. There's a little bit of advice on Github , but not enough. I first initialize my var customAuthPickerViewController : FIRAuthPickerViewController! near the top of the ViewController.swift file. Then, this is the function in my ViewController.swift file, but it's not working. When I click the logout button, the app crashes, and no background

Firebase+RecyclerView: RecyclerView not displaying on application start

谁说胖子不能爱 提交于 2019-12-04 12:37:06
I'm using the Android Studio provided class for a tabbed activity that uses Action Bar Tabs with ViewPager. Inside this activity, I'm trying to initialize a RecyclerView with data from a Firebase database. Problem: On the app's first run, the RecyclerView is empty as shown below. If I close and reopen the application from within the emulator, my RecyclerView gets populated as it should, as shown below. Any ideas as to why this might be happening? I have a theory but I haven't been able to find a solution. After trying to read the FragmentPagerAdapter page, I got the impression that the

Swift 3 - iOS 10 UITableView enabling “swipe-to-delete”

青春壹個敷衍的年華 提交于 2019-12-04 09:03:49
There are a lot of questions about how to enable swipe-to-delete for a UITableView, and they all say the same thing: Override tableView(_:commit editingStyle:forRowAt indexPath:) . I have done this, among other things, and I still do not have the swipe-to-delete functionality. Things I've tried: Setting tableView.allowsMultipleSelectionDuringEditing to true and false, both in code and in IB. Overriding tableView(_:canEditRowAt indexPath:) and returning true . Overriding tableView(_:editingStyleForRowAt indexPath:) and returning .delete . And every combination of above. I'm using FirebaseUI

Firebase android how to prevent FirebaseRecyclerAdapter automatically updating?

左心房为你撑大大i 提交于 2019-12-04 07:24:24
I have a FirebaseRecyclerAdapter which I do not want to keep updating the RecyclerView . This is because I have it so it populates the view with items based on how many 'views' they have in the database. The problem is, if other people view the items, the list you see in the app will keep changing order. Is there a way to stop the recycler adapter from constantly listening for data changes or will I have to go about this another way? Any help is greatly appreciated, thanks. The adapters in FirebaseUI are live-bound to the data at the Query/DatabaseReference that you construct them with. There

New FUITableViewDataSource - how to use? Swift 3

笑着哭i 提交于 2019-12-04 07:06:00
Just updated to the newer FirebaseUI Pod - a few things have changed but one of the big ones is the way that the FUI Table View works. I had it working well on an older version but am struggling with this below - and the lack of documentation/examples. self.dataSource = FUITableViewDataSource(query: <#T##FIRDatabaseQuery#>, view: <#T##UITableView#>, populateCell: <#T##(UITableView, IndexPath, FIRDataSnapshot) -> UITableViewCell#>) I don't understand where the indexpath is being called from. Do I need to make a seperate NSIndexPath to pass into that? I also don't really understand where this is

How to check if firebase recylerview has values or it is empty in android?

孤街醉人 提交于 2019-12-04 06:00:16
问题 I dont like to show empty RecyclerView to users. I know there is getItemCount method in recyclerview, but i think reyclerview is executed on separate thread maybe. Its because whenever i try to call adapter.getitemcount it gives count 0 quickly even when my recyclerview will have values coming from firebase. So i think maybe till the values come the getItemCount method is executed before and returns 0 or maybe it is executed on separate thread. But either way i get 0 even when my recyclerview

Only populate viewHolder with messages retrieved from database?

吃可爱长大的小学妹 提交于 2019-12-04 04:33:05
I'm following the Android Firebase Codelab. Here's the project of the Friendly Chat app I'm attempting to modify: https://github.com/firebase/friendlychat-android/tree/master/android I want the MessageViewHolder to be populated only after retrieving a message from the database. Unfortunately, right now, MessageViewHolder also gets populated locally (after the user presses 'SEND'). I don't want the latter to happen. That means the view holder gets updated twice (once locally and once after retrieval from the database) which is inefficient. Side-node: Also, the user might think he's online when

Email verification for Firebase Auth UI

余生颓废 提交于 2019-12-04 03:07:01
I am using firebase auth UI ( FirebaseUI-Android ) in an android app, where the user can signup with personal email , Facebook , number and Gmail accounts. My question is I need to get email verification when user sign's up with his personal email id. List<AuthUI.IdpConfig> providers = Arrays.asList( new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(), new AuthUI.IdpConfig.Builder(AuthUI.PHONE_VERIFICATION_PROVIDER).build(), new AuthUI.IdpConfig.Builder(AuthUI.FACEBOOK_PROVIDER).build(), new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build()); startActivityForResult( AuthUI

How to update a FirebaseRecyclerAdapter's query

左心房为你撑大大i 提交于 2019-12-04 03:05:53
If I have a Query a , and I'm setting it to a FirebaseRecyclerAdapter . Then, I want to constantly create a new Query and update the FirebaseRecyclerAdapter . E.G: query = database.orderByChild("child"); query2 = database.orderByChild("child2"); adapter = new FirebaseRecyclerAdapter<...>(...,...,...,query){ ... } Now, after 3 seconds, I'm looking for a method to change the query. Similar to this: adapter.setQuery(query2); Is there an existing method for this? Or was Firebase, like always, too lazy to even work on this? Firebase Database queries are immutable: you cannot change the properties

What Is the Code to Install FirebaseUI on iOS (Swift)

核能气质少年 提交于 2019-12-03 22:45:00
I'm trying to install the "drop-in" authentication solution from Firebase that automatically sends your app users through Google, Facebook, or email/password screens to authenticate them. My problem is that the code provided by Firebase appears to be in the old iOS language of Objective C instead of Swift, and that some of the lines of instructional Swift code appear outdated, and I can't find the new lines I'm supposed to use. I'm building my code mostly from the instructions on this part of the Github drop-in solution: FirebaseUI Authentication . This has resulted in the following code, some