firebaseui

FirebaseAuth.getInstance().getCurrentUser() returns previously logged out user

徘徊边缘 提交于 2019-12-12 00:06:36
问题 I have Android app which uses FirebaseAuth and FirebaseDatabase functionalities. Everything was working fine. During last week I was working with one user (user 1) as an admin of the app and yesterday I registered another user (user 2) as a normal user(not admin). Since all my admin functionalities were working fine, I never logged in as the user 1 again. However I had to uninstall my app today and by that time I was logged in as user 2. When I reinstalled it again, I was automatically logged

FirebaseUI/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.xib:-1: Failed to find or create execution context for description

帅比萌擦擦* 提交于 2019-12-11 18:46:20
问题 After updating Xcode to 10.3 I get the bellow error (which I see has something to do with firebase): The page which accompanies it is: Why is this error happening and how can I fix it? What I have tried: updating pods restarting Xcode 回答1: I solved this after looking at the answer on this question: Storyboard broken after updating Xcode to version 10.3 (10G8) & app no longer is running Restarted the mac, problem solved. 来源: https://stackoverflow.com/questions/57172619/firebaseui-phoneauth

Can't get background to show on subclassed FUIAuthPickerViewController

拜拜、爱过 提交于 2019-12-11 18:33:06
问题 So, I subclassed FUIAuthPickerViewController for customization purposes but I can't get the background to display. This started happening after updating Firebase pods to the latest version (was working fine on the previous version). Here's my current set-up. How I call it (from AppDelegate ): var authViewController = authUI.authViewController() self.window!.rootViewController = authViewController self.window!.makeKeyAndVisible() My FUIAuth's delegate method (also in AppDelegate ): func

Firebase AuthUI: NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl

自作多情 提交于 2019-12-11 16:13:47
问题 My App crashes whenever I call this code: if (FirebaseAuth.getInstance().getCurrentUser() == null) { startActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setAvailableProviders(providers) .setLogo(R.drawable.shape_circle) .build(), RC_SIGN_IN); } The weird thing is this code always worked till today, I haven't changed anything here and I did not changed any dependencies. But just today it crashes with these Exceptions: 05-29 20:57:58.875 11408-11408/com.example.jonas

Firebase List Adapter Constructor error

ε祈祈猫儿з 提交于 2019-12-11 15:53:22
问题 I created a function to display a chat message, I followed a tutorial, and I also looked at the documentation for the Firebase list adapter, but no matter what I do, I get this error: Error:(98, 19) error: constructor FirebaseListAdapter in class FirebaseListAdapter<T> cannot be applied to given types; required: FirebaseListOptions<ChatMessage> found: Chat,Class<ChatMessage>,int,DatabaseReference reason: actual and formal argument lists differ in length where T is a type-variable: T extends

Can't use FirebaseUI with fragments

拈花ヽ惹草 提交于 2019-12-11 15:25:21
问题 I'm trying to implement FirebaseAuth UI to my app, but I've ran into some issues. I'm trying to create the FirebaseUIActivity.kt as a fragment, but when I call the support fragment manager it crashes. supportFragmentManager.beginTransaction().replace(R.id.fragment_container, FirebaseUIActivity.newInstance()).commit() Here is some code: MainActivity.kt class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?)

How to store posts created by FirebaseUi in the app?

限于喜欢 提交于 2019-12-11 15:18:16
问题 I have an Activity which retrieves data from Firebase and a post is created. But it has to get reloaded if it is removed from recent app or stopped. I want to store this permanently in the app. How can I do that? My Activity: public class MainActivity extends AppCompatActivity { private RecyclerView mbloglist; private DatabaseReference mdatabase; public static final String TAG = "Homeactivity"; private Context mcontext = MainActivity.this; private static final int ACTIVITY_NUM = 0; Dialog

Android dependency error compile 'com.android.support:appcompat-v7:26.+'

只愿长相守 提交于 2019-12-11 14:55:18
问题 This was working before I added firebaseui dependency. Now I'm getting this: log Its red lining compile 'com.android.support:appcompat-v7:26.+' and when I hover over it, it says "all libraries must be exact same specification version". That version was what was there when the project was created. app/build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.android.adarak" minSdkVersion 21

How to verify email without the need of signing in again while using FirebaseUI-auth?

梦想与她 提交于 2019-12-11 14:40:41
问题 I'm using FirebaseUI-auth in my app in order to sign in user using email and facebook. When a user signin using email he is taken to a screen which shows a text asking him to verify his email. Here's my code: continue_button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { startActivityForResult( // Get an instance of AuthUI based on the default app AuthUI.getInstance() .createSignInIntentBuilder() .setProviders(Arrays.asList(new AuthUI.IdpConfig

indexed query with FirestoreRecyclerAdapter

限于喜欢 提交于 2019-12-11 09:53:11
问题 FirebaseUI-Android provides for indexed queries when using a FirebaseRecyclerAdapter . That works well when accessing Firebase Realtime DB data as explained here: https://github.com/firebase/FirebaseUI-Android/blob/master/database/README.md#using-firebaseui-with-indexed-data But what about accessing Firestore data? It seems that FirestoreRecyclerAdapter does not support indexed queries via setIndexedQuery(keyref, dataref, ... ) How can I maybe execute the data query manually inside the