iOS模拟器不支持此浏览器 [英] This Browser is not supported in iOS simulator
问题描述
在运行以下代码之后,我在iOS模拟器中得到了一个错误:<-c $ c>这个浏览器不支持
常量firebase = require('firebase')$ b $常量firebaseConfig = require('./ firebase-config')
firebase.initializeApp (firebaseConfig)
firebase.database()。ref('test')。set('hello')
firebase-config包含一个databaseURL。
为什么?
Firebaser
新的Firebase身份验证目前在React Native中不起作用, 窗口
对象。我们正在查看是否可以改进,但不能保证。
从 Jacob's在firebase-talk列表上的帖子:
lockquote
作为一个解决方法if你不需要auth(不太可能,我知道,但仍然值得一提),你应该能够做到以下几点:
var app = require('firebase / app');
var database = require('firebase / database');
I am getting an error in react-native, This Browser is not supported
, in the iOS simulator, after running the following code:
const firebase = require('firebase')
const firebaseConfig = require('./firebase-config')
firebase.initializeApp(firebaseConfig)
firebase.database().ref('test').set('hello')
firebase-config contains a databaseURL.
why?
Firebaser here
The new Firebase Authentication currently doesn't work in React Native due to a dependency on the window
object. We're looking if that's something we can improve, but no guarantees.
From Jacob's post on the firebase-talk list:
As a "workaround" if you don't need auth (unlikely, I know, but still worth mentioning), you should be able to do the following:
var app = require('firebase/app');
var database = require('firebase/database');
这篇关于iOS模拟器不支持此浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!