Viewing version 0.1.1+2. Open the latest package page.
firebase_core_web
0.1.1+2The web implementation of firebase_core
Readme
firebase_core_web
The web implementation of firebase_core.
Usage
Import the package
This package is the endorsed implementation of firebase_core for the web platform since version 0.4.3, so it gets automatically added to your dependencies by depending on firebase_core: ^0.4.3.
No modifications to your pubspec.yaml should be required in a recent enough version of Flutter (>=1.12.13+hotfix.4):
...
dependencies:
...
firebase_core: ^0.4.3
...
Updating index.html
Due to this bug in dartdevc, you will need to manually add the Firebase JavaScript file to your index.html file.
In your app directory, edit web/index.html to add the line:
<html>
...
<body>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
<!-- Other firebase SDKs/config here -->
<script src="main.dart.js"></script>
</body>
</html>
Initialize Firebase
If your app is using the "default" Firebase app, you need to initialize it now, following the steps in the Firebase Web Setup docs.
Specifically, you'll want to add the following lines to your web/index.html file:
<body>
<!-- Previously loaded Firebase SDKs -->
<!-- ADD THIS BEFORE YOUR main.dart.js SCRIPT -->
<script>
// TODO: Replace the following with your app's Firebase project configuration.
// See: https://support.google.com/firebase/answer/7015592
var firebaseConfig = {
apiKey: "...",
authDomain: "[YOUR_PROJECT].firebaseapp.com",
databaseURL: "https://[YOUR_PROJECT].firebaseio.com",
projectId: "[YOUR_PROJECT]",
storageBucket: "[YOUR_PROJECT].appspot.com",
messagingSenderId: "...",
appId: "1:...:web:...",
measurementId: "G-..."
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<!-- END OF FIREBASE INIT CODE -->
<script src="main.dart.js"></script>
</body>
Using the plugin
Once you have modified your web/index.html file you should be able to use package:firebase_core as normal.
Changelog
0.1.1+2
- Update setup instructions in the README.
0.1.1+1
- Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46898
0.1.1
- Require Flutter SDK 1.12.13+hotfix.4 or greater.
- Fix homepage.
0.1.0+3
- Remove the deprecated
author:field from pubspec.yaml - Bump the minimum Flutter version to 1.10.0.
0.1.0+2
- Add documentation for initializing the default app.
0.1.0+1
- Use
package:firebasefor firebase functionality.
0.1.0
- Initial open-source release.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'firebase_core_web:0.1.1+2'pubspec.yaml
name: firebase_core_web
description: The web implementation of firebase_core
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_core/firebase_core_web
version: 0.1.1+2
flutter:
plugin:
platforms:
web:
pluginClass: FirebaseCoreWeb
fileName: firebase_core_web.dart
dependencies:
firebase: ^7.0.0
firebase_core_platform_interface: ^1.0.0
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
meta: ^1.1.7
js: ^0.6.1
dev_dependencies:
flutter_test:
sdk: flutter
firebase_core: ^0.4.2+1
environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0+2 | Cached · Upstream SHA-256 matched | Download | 521b8360…2215d1 |
| 0.1.0+3 | Cached · Upstream SHA-256 matched | Download | 3d69843d…9a0f86 |
| 0.1.1 | Cached · Upstream SHA-256 matched | Download | ec2cbba2…135723 |
| 0.1.1+1 | Cached · Upstream SHA-256 matched | Download | b502976e…567e76 |
| 0.1.1+2 | Cached · Upstream SHA-256 matched | Download | 6306ab08…00ea4c |
| 0.2.0-dev.1 | Cached · Upstream SHA-256 matched | Download | 2ee7d95f…20b279 |
| 0.2.0 | Cached · Upstream SHA-256 matched | Download | 8fbd5627…5f5591 |
| 0.2.1 | Cached · Upstream SHA-256 matched | Download | 47cfe6bd…7955e0 |
| 0.2.1+1 | Cached · Upstream SHA-256 matched | Download | 0e45dac2…62dde7 |
| 0.2.1+2 | Cached · Upstream SHA-256 matched | Download | 3ab0db99…d3614b |
| 0.2.1+3 | Cached · Upstream SHA-256 matched | Download | a1469ea3…55fcf6 |
| 0.2.2-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | d55ef305…af71b2 |
| 0.2.2-nullsafety.1 | Cached · Upstream SHA-256 matched | Download | cd3bbbf6…27a506 |
| 0.3.0-1.0.nullsafety.0 | Cached · Upstream SHA-256 matched | Download | 1c899bcd…13a6f1 |
| 0.3.0-1.0.nullsafety.1 | Cached · Upstream SHA-256 matched | Download | 9737bf49…cb81fa |
| 0.3.0-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | bea4560a…3a3ea5 |
| 1.0.0-1.0.nullsafety.0 | Cached · Upstream SHA-256 matched | Download | d04be542…11809e |
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 964a5d66…34efd0 |
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | 75b43466…d0e1d5 |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | b3008644…63e326 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | b3ff2d47…8dd74e |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 580b0994…4d0ae9 |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | 525b69c5…ef4b4b |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | d3c3834b…746afb |
| 1.4.0 | Cached · Upstream SHA-256 matched | Download | a70025e6…a28f5e |
| 1.5.0 | Cached · Upstream SHA-256 matched | Download | ac038cee…dab4eb |
| 1.5.1 | Cached · Upstream SHA-256 matched | Download | 3536b525…a1572a |
| 1.5.2 | Cached · Upstream SHA-256 matched | Download | 2dcdfc32…1056e4 |
| 1.5.3 | Cached · Upstream SHA-256 matched | Download | 809fe267…c54f85 |
| 1.5.4 | Cached · Upstream SHA-256 matched | Download | 598d1ab0…bfb7da |
| 1.6.0 | Cached · Upstream SHA-256 matched | Download | 91abd7fd…221f2d |
| 1.6.1 | Cached · Upstream SHA-256 matched | Download | 93cd5b67…fd19cb |
| 1.6.2 | Cached · Upstream SHA-256 matched | Download | 2010e99e…9e7a9e |
| 1.6.3 | Cached · Upstream SHA-256 matched | Download | 2516e02d…55e99f |
| 1.6.4 | Cached · Upstream SHA-256 matched | Download | 68d3430e…4272c2 |
| 1.6.5 | Cached · Upstream SHA-256 matched | Download | eed8abee…97f116 |
| 1.6.6 | Cached · Upstream SHA-256 matched | Download | f4585d76…107595 |
| 1.7.0 | Cached · Upstream SHA-256 matched | Download | 69a95a15…e75869 |
| 1.7.1 | Cached · Upstream SHA-256 matched | Download | 12853276…468a41 |
| 1.7.2 | Cached · Upstream SHA-256 matched | Download | 26f5ed9c…9f0389 |
| 1.7.3 | Cached · Upstream SHA-256 matched | Download | 839f1b48…0acbee |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | f6a7bd5e…6e4166 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | a2acf430…ef3040 |
| 2.0.2 | Cached · Upstream SHA-256 matched | Download | b2917618…08d369 |
| 2.1.0 | Cached · Upstream SHA-256 matched | Download | 18b35ce1…0c75bc |
| 2.1.1 | Cached · Upstream SHA-256 matched | Download | 4b3a4141…ed6d18 |
| 2.2.0 | Cached · Upstream SHA-256 matched | Download | 0684787b…af8ca3 |
| 2.2.1 | Cached · Upstream SHA-256 matched | Download | 291fbcac…5b833a |
| 2.2.2 | Cached · Upstream SHA-256 matched | Download | 0c1cf1f1…3fb8ff |
| 2.3.0 | Cached · Upstream SHA-256 matched | Download | 347351a8…ac792b |
| 2.4.0 | Cached · Upstream SHA-256 matched | Download | e57ef862…6fb444 |
| 2.5.0 | Cached · Upstream SHA-256 matched | Download | 8c0f4c87…740a45 |
| 2.6.0 | Cached · Upstream SHA-256 matched | Download | 0fd5c4b2…f922fa |
| 2.7.0 | Cached · Upstream SHA-256 matched | Download | 4cf4d216…70e973 |
| 2.8.0 | Cached · Upstream SHA-256 matched | Download | e8c40892…84e962 |
| 2.8.1 | Cached · Upstream SHA-256 matched | Download | 0631a2ec…689d97 |
| 2.9.0 | Cached · Upstream SHA-256 matched | Download | 10159d9e…44c018 |
| 2.10.0 | Cached · Upstream SHA-256 matched | Download | d585bdf3…aa83c0 |
| 2.11.0 | Cached · Upstream SHA-256 matched | Download | 5fcd979e…80a0ac |
| 2.11.1 | Cached · Upstream SHA-256 matched | Download | 8b70f6e5…7d8ace |
| 2.11.2 | Cached · Upstream SHA-256 matched | Download | 288bcb94…8f4900 |
| 2.11.3 | Cached · Upstream SHA-256 matched | Download | df9d4ce3…e8b312 |
| 2.11.4 | Cached · Upstream SHA-256 matched | Download | 57e61d60…78a0ba |
| 2.11.5 | Cached · Upstream SHA-256 matched | Download | c8e1d593…ab2492 |
| 2.12.0 | Cached · Upstream SHA-256 matched | Download | 5377eaac…cb37de |
| 2.13.0 | Cached · Upstream SHA-256 matched | Download | 6afef1b4…4752d4 |
| 2.14.0 | Cached · Upstream SHA-256 matched | Download | 28e30e00…f404ba |
| 2.15.0 | Cached · Upstream SHA-256 matched | Download | c8b02226…4ad3c8 |
| 2.16.0 | Cached · Upstream SHA-256 matched | Download | 67f2fcc6…fe5c29 |
| 2.17.0 | Cached · Upstream SHA-256 matched | Download | 43d9e951…8db8e9 |
| 2.17.1 | Cached · Upstream SHA-256 matched | Download | 22fcb352…575a41 |
| 2.17.2 | Cached · Upstream SHA-256 matched | Download | 6643fe3d…9d1a3d |
| 2.17.3 | Cached · Upstream SHA-256 matched | Download | 23509cb3…978712 |
| 2.17.4 | Cached · Upstream SHA-256 matched | Download | e8d1e22d…5fd11e |
| 2.17.5 | Cached · Upstream SHA-256 matched | Download | 362e5245…e2bd88 |
| 2.18.0 | Cached · Upstream SHA-256 matched | Download | f4ee1704…78ce25 |
| 2.18.1 | Cached · Upstream SHA-256 matched | Download | f967a713…b3b3e5 |
| 2.18.2 | Cached · Upstream SHA-256 matched | Download | 9e69806b…2b4e5e |
| 2.19.0 | Cached · Upstream SHA-256 matched | Download | fbc008cf…ee956b |
| 2.20.0 | Cached · Upstream SHA-256 matched | Download | 0e13c80f…762678 |
| 2.21.0 | Cached · Upstream SHA-256 matched | Download | e47f5c27…5c8e41 |
| 2.21.1 | Cached · Upstream SHA-256 matched | Download | faa5a76f…651493 |
| 2.22.0 | Cached · Upstream SHA-256 matched | Download | 129a34d1…929b23 |
| 2.23.0 | Cached · Upstream SHA-256 matched | Download | ddd72baa…f7326e |
| 2.24.0 | Cached · Upstream SHA-256 matched | Download | eb3afccf…bb20b3 |
| 2.24.1 | Cached · Upstream SHA-256 matched | Download | 0ed0dc29…556c37 |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | 5d28b14d…bb7b16 |
| 3.1.0 | Cached · Upstream SHA-256 matched | Download | f7ee08fe…90094a |
| 3.1.1 | Cached · Upstream SHA-256 matched | Download | 61a51037…713b82 |
| 3.2.0 | Cached · Upstream SHA-256 matched | Download | ecde2def…5ec8ae |
| 3.3.0 | Cached · Upstream SHA-256 matched | Download | ff18fabb…ded398 |
| 3.3.1 | Cached · Upstream SHA-256 matched | Download | a631bbfb…2bbf1f |
| 3.4.0 | Cached · Upstream SHA-256 matched | Download | 83e7356c…708084 |
| 3.5.0 | Cached · Upstream SHA-256 matched | Download | 856ca92b…acfca6 |
| 3.5.1 | Cached · Upstream SHA-256 matched | Download | 1399ab1f…205ebe |
| 3.6.0 | Cached · Upstream SHA-256 matched | Download | dc509625…76118c |
| 3.6.1 | Cached · Upstream SHA-256 matched | Download | 73b01cba…c3471b |
| 3.7.0 | Cached · Upstream SHA-256 matched | Download | 7c98f10b…0d9e57 |
| 3.8.0 | Cached · Upstream SHA-256 matched | Download | 5ad1be84…1854f8 |
| 3.9.0 | Cached · Upstream SHA-256 matched | Download | 30ba3ae5…7b55bf |
| 3.9.1 | Cached · Upstream SHA-256 matched | Download | ddab99d7…8ca555 |
| 3.10.0 | Cached · Upstream SHA-256 matched | Download | f471a288…1e04ea |
| 3.11.0 | Cached · Upstream SHA-256 matched | Download | de1e6782…fb8e91 |
| 3.12.0 | Cached · Upstream SHA-256 matched | Download | 8ed84f50…fc2f6e |
| 4.0.0 | Cached · Upstream SHA-256 matched | Download | d5bf0dca…3304b4 |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | 0ec9832b…9458db |
Dependencies
firebase "^7.0.0"
firebase_core_platform_interface "^1.0.0"
flutter {
"sdk": "flutter"
}
flutter_web_plugins {
"sdk": "flutter"
}
js "^0.6.1"
meta "^1.1.7"