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."}
I found the solution, the issue was corrected in the latest Firebase JavaScript SDK release (4.1.3)
来源:https://stackoverflow.com/questions/44651423/oauth-signin-cordova-firebase