firebaseui

FirebaseListAdapter<> Not Working [duplicate]

自古美人都是妖i 提交于 2020-01-11 13:04:08
问题 This question already has an answer here : Firebase List Adapter Constructor error (1 answer) Closed 2 years ago . I am following this tutorial to create a chat app. This is my displayChatMessages() method: ListView listOfMessages = (ListView)findViewById(R.id.list_of_messages); adapter = new FirebaseListAdapter<ChatMessages>(this, ChatMessages.class, R.layout.message, FirebaseDatabase.getInstance().getReference()) { @Override protected void populateView(View v, ChatMessages model, int

iOS firebase: FIRAuthUIDelegate.authUI not being called

假装没事ソ 提交于 2020-01-11 05:24:06
问题 I am trying to launch google login from AppDelegate.swift and then launch my app's main screen upon login success. I am able to show the google login button as shown above the user is sent to google to sign in the user is sent back to original (step 1) After step 3. I'd like to send the user to my app's main page. My code is below. The problem I'm having is that authUI is not being called. @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, FIRAuthUIDelegate { var window

How to remove currently selected item in ListView that works with FirebaseListAdapter?

旧时模样 提交于 2020-01-06 17:47:39
问题 I am developing an Android app, and I have already implemented authentication with Firebase. After logging in, in my NavigationDrawerActivity I have a ListView that I had set a FirebaseListAdapater to that gets user specific data. In my onCreate() method I have the following: firebaseAuth = FirebaseAuth.getInstance(); FirebaseUser localUser = firebaseAuth.getCurrentUser(); String localUserEmail = localUser.getEmail(); String localUserEmailUniqueID = getEmailAddressUniqueID(localUserEmail);

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()

In Firebase recycler adapter onBindViewHolder and onCreateViewHolder never called?

白昼怎懂夜的黑 提交于 2020-01-06 06:42:10
问题 I am writing an android application where I needs to show a list of data using recycler view . I am using firebase realtime database with read write rules true , but the problem is onBindViewHolder and onCreateViewHolder are never called as the log says . Modal class : ConnectedListItem.java public class ConnectedListItem { String name; Double lat , lng; public ConnectedListItem() { } public ConnectedListItem(String name, Double lat, Double lng) { this.name = name; this.lat = lat; this.lng =

How to catch java.lang.RuntimeException: Could not deserialize object from Firebase ClassMapper and add default Values

狂风中的少年 提交于 2020-01-05 10:10:31
问题 I am using Firebase UI Recycler Adapter to read data from Firestore FirestoreRecyclerOptions<Transaction> options = new FirestoreRecyclerOptions.Builder<Transaction>() .setQuery(mQuery, Transaction.class) .setLifecycleOwner(this) .build(); mAdapter = new TransactionAdapter(options, this, getActivity()) { @Override public void onDataChanged() { // Show/hide content if the query returns empty. if (getItemCount() == 0) { mRestaurantsRecycler.setVisibility(View.GONE); mEmptyView.setVisibility

Facebook provider unconfigured. Make sure to add a `facebook_application_id` string

这一生的挚爱 提交于 2020-01-04 07:42:50
问题 I'm using Firebase UI Sign In and trying to implement Facebook sign in into my android app. When launching the firebase ui activity I get: "java.lang.IllegalStateException: Facebook provider unconfigured. Make sure to add a facebook_application_id string" In my string resources I have added it, this is how it looks: By the way in the firebase docs the string names are different from the ones in the facebook docs, this is how they look in the facebook docs or also called quickstart: `<string

Filtering items to populate in RecyclerView based on a child key using parseSnapshot(DataSnapshot snapshot)

淺唱寂寞╮ 提交于 2020-01-04 03:14:08
问题 I am developing a forum kind of app where users can post questions and tag them with related technologies. The app has the modules and database similar to the Firebase database repo. I wanted to filter the posts according to their tags. As filtering on server-side is not possible for multiple key values, I had to approach a way to filter it before populating in RecyclerView. I referred a lot of questions here and found Puf's answer relevant for this case. This is my JSON tree "posts" : { "

How to query a specific child value in multiple nodes with firebase android

自古美人都是妖i 提交于 2020-01-03 16:53:46
问题 I want to query a specific child value in multiple nodes, to populate them in a list view by FirebaseListAdapter. I'm passing a firebase reference to FirebaseListAdapter method to listen to, which is in red rectangle in the picture below, And I want to populate in the list view the values of the "category" key only. which are in green rectangle in the picture below. My code is here: catgoryList = (ListView) findViewById(R.id.catList); rootRef = FirebaseDatabase.getInstance().getReference();

How to query a specific child value in multiple nodes with firebase android

泄露秘密 提交于 2020-01-03 16:50:07
问题 I want to query a specific child value in multiple nodes, to populate them in a list view by FirebaseListAdapter. I'm passing a firebase reference to FirebaseListAdapter method to listen to, which is in red rectangle in the picture below, And I want to populate in the list view the values of the "category" key only. which are in green rectangle in the picture below. My code is here: catgoryList = (ListView) findViewById(R.id.catList); rootRef = FirebaseDatabase.getInstance().getReference();