mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
firebase configuration and connect device with real-time bd
This commit is contained in:
@ -40,6 +40,8 @@
|
||||
<script src="flutter.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load', function(ev) {
|
||||
// Download main.dart.js
|
||||
@ -54,6 +56,20 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
var firebaseConfig = {
|
||||
apiKey: "AIzaSyCVEvKsJYzhWDFM-9Od68FE0nPpP933st0",
|
||||
authDomain: "test2-8a3d2.firebaseapp.com",
|
||||
databaseURL: "https://test2-8a3d2-default-rtdb.firebaseio.com",
|
||||
projectId: "test2-8a3d2",
|
||||
storageBucket: "test2-8a3d2.firebasestorage.app",
|
||||
messagingSenderId: "427332280600",
|
||||
appId: "1:427332280600:web:ad50516a87a35a1a0c7e6d",
|
||||
measurementId: "G-Z1RTTTV5H9"
|
||||
};
|
||||
firebase.initializeApp(firebaseConfig);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user