我使用firebase用户auth创建React Native应用,在这里我尝试将用户重定向到Facebook登录:
login(){
const provider = new firebase.auth.FacebookAuthProvider();
firebase.auth().signInWithPopup(provider)
.then(function(result){
Alert.alert(result.user.email);
});
}
但是我每次都会收到此错误: 运行该应用程序的环境不支持此操作。“ location.protocol”必须为http,https或chrome-extension,并且必须启用网络存储。 我在这个论坛上发现了this个问题,这不完全是我的问题,但我认为这很相似。 在我的应用程序中,我使用expo,如何配置expo服务器或如何解决呢?