firebaseui-web icon indicating copy to clipboard operation
firebaseui-web copied to clipboard

auth/operation-not-supported-in-this-environment on Ionic v4

Open marcoancona opened this issue 5 years ago • 14 comments

Describe your environment

  • Operating System version: ionic v4 (React) / iOS
  • Browser version: -
  • Firebase UI version: 4.2.0
  • Firebase SDK version: 6.6.0

Describe the problem

Not sure this is a bug. I cannot make Google OAuth work on a Ionic hybrid-app. The error is always the following:

auth/operation-not-supported-in-this-environment

This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.

In fact, location.protocol is capacitor: in my case. On the other hand, the doc says

FirebaseUI fully supports all recent browsers. Signing in with federated providers (Google, Facebook, Twitter, GitHub, Microsoft, Yahoo, OIDC, SAML) is also supported in Cordova/Ionic environments.

First of all, does this include Capacitor environments? I only find inconsistent or outdated information.

marcoancona avatar Sep 08 '19 16:09 marcoancona

We do not support Capacitor environments.

bojeil-google avatar Sep 09 '19 00:09 bojeil-google

I see. I will use only email authentication for now, which works like a charm. I would suggest to update the README to clarify this, because "Ionic" can be intended as "Capacitor" nowadays. Any plans to support this in the future?

marcoancona avatar Sep 09 '19 01:09 marcoancona

Any plans to support this?

ryan29871 avatar Oct 14 '19 16:10 ryan29871

Any plans to support this?

ajay-a1 avatar Nov 28 '19 08:11 ajay-a1

ye please add support

ciriousjoker avatar Dec 12 '19 18:12 ciriousjoker

Any plans to support this?

spock-mark1 avatar Jan 30 '20 23:01 spock-mark1

I also need urgently this functionality. I would like to use the FirebaseUI Auth with Ionic Capacitor using the Facebook and Google provider.

waterkamp avatar Feb 06 '20 23:02 waterkamp

yes please add support for this!

Henryisthebest avatar Mar 03 '20 12:03 Henryisthebest

Capacitor is growing rapidly and still no plans to support it. Can we have an update? @bojeil-google

ajain-1 avatar Jul 01 '20 23:07 ajain-1

I've filed this internally as b/160626915.

yuchenshi avatar Jul 06 '20 20:07 yuchenshi

This is a feature I would love, it has taken me a long time to find this page and determine what I'm trying isn't possible.

ASomerN avatar Sep 15 '20 18:09 ASomerN

Hi there, what's the status of this issue. Will this feature be implemented? As of ionic 5, capacitor is what is used...

sw-tracker avatar Sep 20 '20 17:09 sw-tracker

As capacitor continues to grow, I'd also like to suggest implementing this as well! as of October, @capacitor/core is averaging 83k weekly installs according to npm. Just noting if that helps with task prioritization!

uncvrd avatar Nov 01 '20 05:11 uncvrd

We do not support Capacitor environments.

You do support Streamlit environment?

manueljuan123 avatar Oct 10 '23 19:10 manueljuan123