OAuth 登录 Cordova Firebase

OAuth SignIn Cordova Firebase

我尝试按照此 firebase 教程中的步骤在混合 cordova 应用程序中使用 OAuth SignIn Cordova Firebase:

Authenticate Using OAuth Providers with Cordova

但我没有成功并收到以下错误消息:

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."}

我找到了解决方案,该问题已在最新的 Firebase JavaScript SDK 版本 (4.1.3) 中得到纠正

Firebase JavaScript SDK Release Notes