我使用React和Firebase为大学做了一个小项目。在Chrome和Firefox的默认导航中,使用带有标志的参数的最具体的远程配置可以正常运行。
在Firefox中,私有模式远程配置未运行。此状态仅为“踩踏”状态,不会进入React的.then / .catch / .finaly。
console.log(remoteConfig.fetchAndactivate())
remoteConfig.fetchAndactivate()
.then(() => {
const fireBase = remoteConfig.getall();
this.setState({
firebase: fireBase,})
})
.catch((err) => {
console.log(err)
});
以私有模式运行等于默认模式