Roh*_*yal 5 google-analytics firebase react-native firebase-analytics
从阅读中我了解到,Firebase正式支持react-native。
https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html
我已经按照上面的链接进行了这些步骤
从“ firebase”导入*作为firebase;
const firebaseConfig = {apiKey:“”,authDomain:“”,databaseURL:“”,storageBucket:“”,}; const firebaseApp = firebase.initializeApp(firebaseConfig);
我在上述字段中输入了所有正确的值。据我了解,这应该在我的项目中启用Firebase分析,并且应该在Firebase控制台中看到会话报告。但是我什么也看不到。
我在这里想念什么吗?也有什么方法可以让Firebase登录本机以使我知道发生了什么吗?
Firebase Web SDK(包括实时数据库)与 React Native 配合使用。但是,Firebase 目前不提供分析作为 Web SDK 的一部分。要启用分析,您需要围绕本机 SDK 实现包装器或使用https://github.com/fullstackreact/react-native-firestack等库。
| 归档时间: |
|
| 查看次数: |
4451 次 |
| 最近记录: |