proposals icon indicating copy to clipboard operation
proposals copied to clipboard

FirebaseUI

Open ASomerN opened this issue 4 years ago • 2 comments

Plugin Request

Name: FirebaseUI Package: @capacitor-community/firebase-ui

Platform(s)

Web/Android/iOS

Description

Implementation of the plugin should allow authentication with supported firebase methods.

ASomerN avatar Sep 29 '20 22:09 ASomerN

Also related is #91 if that package is created first, it could be the dependency for the FirebaseUI

mesqueeb avatar Jan 30 '21 02:01 mesqueeb

Not a full solution, but it might be useful for someone. I use this little hack to use firebaseui in capacitor:

btn = document.querySelector('[data-provider-id="facebook.com"');
if (btn)
  btn.addEventListener('click', this.onFacebookClick, { capture: true });
onFacebookClick = (e) => {
  signIn(async () => await FirebaseAuthentication.signInWithFacebook());
  e.preventDefault();
  e.stopPropagation();
}

This way firebaseui is used for the UI part, but login is handled natively (for Android build, web can be still fully handled by firebaseui).

jirihajek avatar Sep 08 '22 08:09 jirihajek