Giter Site home page Giter Site logo

sam0829 / firebase_auth_ui Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 20.0 243 KB

Flutter plugin for Firebase Auth UI. Supports popular auth providers by using native SDK for Android and iOS.

Home Page: https://pub.dev/packages/firebase_auth_ui

License: BSD 3-Clause "New" or "Revised" License

Kotlin 22.12% Ruby 13.45% Swift 32.44% Objective-C 1.19% Dart 30.80%
firebase-auth firebase-authui flutter flutter-examples flutter-package flutter-plugin

firebase_auth_ui's People

Contributors

fdietze avatar sam0829 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

firebase_auth_ui's Issues

Feature: Phone Authentication

Thanks for this amazing package, it really reduces the authentication burden!

It would be really great if the authentication method by phone number would be added. For me it is still the best way to integrate contacts in my app.

Happy to hear from you!

The plugin `firebase_auth_ui` uses a deprecated version of the Android embedding.

Hi,
This is my first time working on a flutter app so i am sorry if this is a stupid question but please explain where am I going wrong. I have purchased a template app and since the first time trying to run it (no modifications) I see the following warning in RED (the app still runs):

The plugin firebase_auth_ui uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Following the bread crumbs have brought me here. Can you please let me know if this is something you can fix and update the package on pub.get or is there something I can do to to get rid of the error? I am worried of the red warning and that even if the app runs now if might not run in the future.

Thank you for your time to look into this and aswer.

Need Sign In Apple Urgently

Dear @sam0829 please make for sign in by apple, because my application rejection several times by apple cause didn't have apple sign in.

thank you very much

delete user throws native exception

Hello, I am getting "java.lang.IllegalStateException: Reply already submitted" when trying to call the delete function on the user.
Could you update a bit this library? It is very useful to many of us that have used it.
Thank you

Twitter configuration is incorrect

The Twitter Configuration looks incorrect and incomplete.

  • fb looks like a copy/paste error.
  • it says that you really don't need to anything for iOS, but I had to do a few things, like add twitter and twitterauth to LSApplicationQueriesSchemes, and configure the callback handler to be twitterkit-<consumer-key>://

"ui_flow" title in actionbar

Hi, when I launch the login/register process using
FirebaseAuthUi.instance()
.launchAuth
the first page that appears lets choose the login method (email, facebook etc) , the title in the action bar is "ui_flow" can that be changed?
Also, you have done a wonderful job with this. It is helping mw a lot
Thanks

How to stay logged in?

From my understanding, logging in is only possible via launchAuth, which in turn takes forever to do its job even if the user signed in previously. Is there a way to store the authentication data until logout() is called? I can't find any api tokens exposed by this thing.

new user sign up

Hi,
great package.
How can I know if this is a new user (sign up)? So I can insert him in firestore.
thanks

Cannot localize UI on iOS

Thank you for great plugin.
I want to display UI in Japanese but localize in Japanese is not work only on iOS.
Is there a option to localize on iOS?

Error after adding the firebase_auth_ui dependence

Hello!

Thank you for the module!

Do you have any idea what is the reason for these errors even if I don't call any auth methods?

Launching lib\main.dart on AOSP on IA Emulator in debug mode...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
I/alatycalculato( 3195): Background concurrent copying GC freed 19514(1046KB) AllocSpace objects, 10(488KB) LOS objects, 49% free, 2MB/5MB, paused 1.187ms total 223.763ms
I/alatycalculato( 3195): Background concurrent copying GC freed 13864(1046KB) AllocSpace objects, 11(844KB) LOS objects, 49% free, 3MB/7MB, paused 4.201ms total 378ms
I/Choreographer( 3195): Skipped 238 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 3195): eglMakeCurrent: 0xec0499e0: ver 2 0 (tinfo 0xd15c0670)
I/OpenGLRenderer( 3195): Davey! duration=4493ms; Flags=1, IntendedVsync=109762932330284, Vsync=109766898996792, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=109766903257920, AnimationStart=109766903330620, PerformTraversalsStart=109766904922820, DrawStart=109766935093720, SyncQueued=109766938012320, SyncStart=109766948236420, IssueDrawCommandsStart=109766949191920, SwapBuffers=109767236805920, FrameCompleted=109767435603020, DequeueBufferDuration=58181000, QueueBufferDuration=1424000,
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
D/EGL_emulation( 3195): eglMakeCurrent: 0xebf87520: ver 2 0 (tinfo 0xd561fb90)
D/eglCodecCommon( 3195): setVertexArrayObject: set vao to 0 (0) 1 0
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse( 3195): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}

App Crashes on show auth UI

gradle:
android compileSdkVersion 29
minSdkVersion 18
targetSdkVersion 29
multiDexEnabled true

flutter doctor:
Flutter (Channel master, 1.24.0-8.0.pre.149, on Linux, locale es_AR.UTF-8)
• Flutter version 1.24.0-8.0.pre.149 at /home/xxx/snap/flutter/common/flutter
• Framework revision 8e7748e74c (hace 3 semanas), 2020-11-08 20:32:04 -0800
• Engine revision 0f7cdca65f
• Dart version 2.12.0 (build 2.12.0-27.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /home/xxx/Android/Sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /home/xxx/apps/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

pubspec:
flutter sdk: ">=2.7.0 <3.0.0"

dependencies:

firebase_auth_ui: ^1.0.1
firebase_auth: ^0.18.0+1

phone
Sony Xperia XA1 Plus
Android 8.0 (SDK 26)

stacktrace:

java.lang.RuntimeException:
at android.view.DisplayListCanvas.throwIfCannotDraw (DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap (RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:529)
at android.widget.ImageView.onDraw (ImageView.java:1367)
at android.view.View.draw (View.java:19380)
at android.view.View.updateDisplayListIfDirty (View.java:18287)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw (ConstraintLayout.java)
at android.view.View.updateDisplayListIfDirty (View.java:18275)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at android.view.View.updateDisplayListIfDirty (View.java:18275)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at android.view.View.updateDisplayListIfDirty (View.java:18275)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at android.view.View.updateDisplayListIfDirty (View.java:18275)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at android.view.View.updateDisplayListIfDirty (View.java:18275)
at android.view.View.draw (View.java:19092)
at android.view.ViewGroup.drawChild (ViewGroup.java:4344)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4130)
at com.android.internal.policy.DecorView.dispatchDraw (DecorView.java:831)
at android.view.View.draw (View.java:19392)
at com.android.internal.policy.DecorView.draw (DecorView.java:817)
at android.view.View.updateDisplayListIfDirty (View.java:18287)
at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:643)
at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:649)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:757)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3380)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3182)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2703)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1602)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7407)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:948)
at android.view.Choreographer.doCallbacks (Choreographer.java:750)
at android.view.Choreographer.doFrame (Choreographer.java:682)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:934)
at android.os.Handler.handleCallback (Handler.java:869)
at android.os.Handler.dispatchMessage (Handler.java:101)
at android.os.Looper.loop (Looper.java:206)
at android.app.ActivityThread.main (ActivityThread.java:6749)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:845)

features

Hi,
how about theses features?

  1. deleting user?
  2. tos and privacy policy (none, one or both), now if I only want one the other doesn't show
  3. when login via facebook, it doesn't show choice between accounts, like google did
  4. how can I change the languages?

thanks

Open any auth flow directly without showing default screen

How can I implement any auth flow without showing default providers list screen as we can do in native sdk's?
eg. In iOS/Android native, we have the option to launch screen which provides buttons for multiple auth or we can also open any specific auth directly without showing auth providers list.

Make the UI customizable

I don't know if this is already possible, but I would like to be able to customize the UI. Thanks

Unable to start sign-in page on Web

Hello - thanks you for sharing the hard work you've done in this library. I wanted to help by reporting that when trying to open the sign in module in Flutter Web, I get the following error:

Error MissingPluginException(No implementation found for method launchFlow on channel firebase_auth_ui)

I'm using the FirebaseAuthUi.instance().launchAuth([ method as shared in the examples. I see that uses some sort of reflection (I'm not a Dart expert).

Is this a valid defect? If so, how can I help fix it?
Also, is there a workaround? How can I manually trigger the login screen (launchFlow)?

Thanks so much in advance.

Doesn't support latest Firebase in iOS

This compiles

dependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.5.0+1
  firebase_auth: ^0.18.0+2

This doesn't

dependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.5.0+1
  firebase_auth: ^0.18.0+2
  firebase_auth_ui: 1.0.1

The error is:

In file included from
    /Users/will/repos/loveblocks-labs/flutter_android_ios/flutter_android_ios/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIR
    CDLibrary/FIRCoreDiagnostics.m:24:
    /Users/will/repos/loveblocks-labs/flutter_android_ios/flutter_android_ios/ios/Pods/FirebaseCoreDiagnostics/GoogleUtilities/Logger/Priva
    te/GULLogger.h:22:9: fatal error: 'GoogleUtilities/GULLoggerLevel.h' file not found
    #import <GoogleUtilities/GULLoggerLevel.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.

The packages used in this blog post are too old. I'm now following a promising guide that has fewer, generic dependencies.

It looks like that will work but I love this Library so I'm hoping to come back to it someday and rip out the workaround code. Cheers mate!

Facebook Login Error

W/Facebook Builder(30921): Facebook provider configured for Chrome Custom Tabs. I/BiChannelGoogleApi(30921): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzao@a145a65 W/DynamiteModule(30921): Local module descriptor class for com.google.firebase.auth not found. I/FirebaseAuth(30921): [FirebaseAuth:] Preparing to create service connection to gms implementation

CocoaPods could not find compatible versions for pod "firebase_auth_ui":

Hi, I'm having some trouble launching the app on iPhone.
It gives me this error:

[!] CocoaPods could not find compatible versions for pod "firebase_auth_ui":
  In Podfile:
    firebase_auth_ui (from `.symlinks/plugins/firebase_auth_ui/ios`)

Specs satisfying the `firebase_auth_ui (from `.symlinks/plugins/firebase_auth_ui/ios`)` dependency were found, but they required a higher minimum deployment target.

and also :
Error output from CocoaPods:

[!] Automatically assigning platform `iOS` with version `8.1` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone 11 Pro Max.

Can you give any help on this?

Auth Management UI also?

Love the idea of this plugin.

Could we have a UI for managing the auth? Eg signout and deletion of user from app?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.