OAuth登录Cordova Firebase [英] OAuth SignIn Cordova Firebase

查看:87
本文介绍了OAuth登录Cordova Firebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

通过Cordova认证使用OAuth提供程序

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

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

错误:{代码":此环境不支持验证/操作",消息":此应用程序在运行的环境中不支持此操作. \必须为http,https或chrome-extension,并且必须启用网络存储."}

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)中已得到解决

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

Firebase JavaScript SDK发行说明

这篇关于OAuth登录Cordova Firebase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆