Search code examples
cordovafirebaseoauthfirebase-authenticationinappbrowser

OAuth SignIn Cordova Firebase


I tried to use OAuth SignIn Cordova Firebase in a hybrid cordova app following the steps from this firebase tutorial:

Authenticate Using OAuth Providers with Cordova

But I did not succeed and get the error message below:

Error: {"code":"auth/operation-not-supported-in-this-environment","message":"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."}


Solution

  • I found the solution, the issue was corrected in the latest Firebase JavaScript SDK release (4.1.3)

    Firebase JavaScript SDK Release Notes