Viewing version 0.1.1+2. Open the latest package page.

firebase_core_web

0.1.1+2

The web implementation of firebase_core

Download archive

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

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:firebase for 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

VersionPublishedArchiveSHA-256
0.1.0+2Cached · Upstream SHA-256 matchedDownload521b8360…2215d1
0.1.0+3Cached · Upstream SHA-256 matchedDownload3d69843d…9a0f86
0.1.1Cached · Upstream SHA-256 matchedDownloadec2cbba2…135723
0.1.1+1Cached · Upstream SHA-256 matchedDownloadb502976e…567e76
0.1.1+2Cached · Upstream SHA-256 matchedDownload6306ab08…00ea4c
0.2.0-dev.1Cached · Upstream SHA-256 matchedDownload2ee7d95f…20b279
0.2.0Cached · Upstream SHA-256 matchedDownload8fbd5627…5f5591
0.2.1Cached · Upstream SHA-256 matchedDownload47cfe6bd…7955e0
0.2.1+1Cached · Upstream SHA-256 matchedDownload0e45dac2…62dde7
0.2.1+2Cached · Upstream SHA-256 matchedDownload3ab0db99…d3614b
0.2.1+3Cached · Upstream SHA-256 matchedDownloada1469ea3…55fcf6
0.2.2-nullsafety.0Cached · Upstream SHA-256 matchedDownloadd55ef305…af71b2
0.2.2-nullsafety.1Cached · Upstream SHA-256 matchedDownloadcd3bbbf6…27a506
0.3.0-1.0.nullsafety.0Cached · Upstream SHA-256 matchedDownload1c899bcd…13a6f1
0.3.0-1.0.nullsafety.1Cached · Upstream SHA-256 matchedDownload9737bf49…cb81fa
0.3.0-nullsafety.0Cached · Upstream SHA-256 matchedDownloadbea4560a…3a3ea5
1.0.0-1.0.nullsafety.0Cached · Upstream SHA-256 matchedDownloadd04be542…11809e
1.0.0Cached · Upstream SHA-256 matchedDownload964a5d66…34efd0
1.0.1Cached · Upstream SHA-256 matchedDownload75b43466…d0e1d5
1.0.2Cached · Upstream SHA-256 matchedDownloadb3008644…63e326
1.0.3Cached · Upstream SHA-256 matchedDownloadb3ff2d47…8dd74e
1.1.0Cached · Upstream SHA-256 matchedDownload580b0994…4d0ae9
1.2.0Cached · Upstream SHA-256 matchedDownload525b69c5…ef4b4b
1.3.0Cached · Upstream SHA-256 matchedDownloadd3c3834b…746afb
1.4.0Cached · Upstream SHA-256 matchedDownloada70025e6…a28f5e
1.5.0Cached · Upstream SHA-256 matchedDownloadac038cee…dab4eb
1.5.1Cached · Upstream SHA-256 matchedDownload3536b525…a1572a
1.5.2Cached · Upstream SHA-256 matchedDownload2dcdfc32…1056e4
1.5.3Cached · Upstream SHA-256 matchedDownload809fe267…c54f85
1.5.4Cached · Upstream SHA-256 matchedDownload598d1ab0…bfb7da
1.6.0Cached · Upstream SHA-256 matchedDownload91abd7fd…221f2d
1.6.1Cached · Upstream SHA-256 matchedDownload93cd5b67…fd19cb
1.6.2Cached · Upstream SHA-256 matchedDownload2010e99e…9e7a9e
1.6.3Cached · Upstream SHA-256 matchedDownload2516e02d…55e99f
1.6.4Cached · Upstream SHA-256 matchedDownload68d3430e…4272c2
1.6.5Cached · Upstream SHA-256 matchedDownloadeed8abee…97f116
1.6.6Cached · Upstream SHA-256 matchedDownloadf4585d76…107595
1.7.0Cached · Upstream SHA-256 matchedDownload69a95a15…e75869
1.7.1Cached · Upstream SHA-256 matchedDownload12853276…468a41
1.7.2Cached · Upstream SHA-256 matchedDownload26f5ed9c…9f0389
1.7.3Cached · Upstream SHA-256 matchedDownload839f1b48…0acbee
2.0.0Cached · Upstream SHA-256 matchedDownloadf6a7bd5e…6e4166
2.0.1Cached · Upstream SHA-256 matchedDownloada2acf430…ef3040
2.0.2Cached · Upstream SHA-256 matchedDownloadb2917618…08d369
2.1.0Cached · Upstream SHA-256 matchedDownload18b35ce1…0c75bc
2.1.1Cached · Upstream SHA-256 matchedDownload4b3a4141…ed6d18
2.2.0Cached · Upstream SHA-256 matchedDownload0684787b…af8ca3
2.2.1Cached · Upstream SHA-256 matchedDownload291fbcac…5b833a
2.2.2Cached · Upstream SHA-256 matchedDownload0c1cf1f1…3fb8ff
2.3.0Cached · Upstream SHA-256 matchedDownload347351a8…ac792b
2.4.0Cached · Upstream SHA-256 matchedDownloade57ef862…6fb444
2.5.0Cached · Upstream SHA-256 matchedDownload8c0f4c87…740a45
2.6.0Cached · Upstream SHA-256 matchedDownload0fd5c4b2…f922fa
2.7.0Cached · Upstream SHA-256 matchedDownload4cf4d216…70e973
2.8.0Cached · Upstream SHA-256 matchedDownloade8c40892…84e962
2.8.1Cached · Upstream SHA-256 matchedDownload0631a2ec…689d97
2.9.0Cached · Upstream SHA-256 matchedDownload10159d9e…44c018
2.10.0Cached · Upstream SHA-256 matchedDownloadd585bdf3…aa83c0
2.11.0Cached · Upstream SHA-256 matchedDownload5fcd979e…80a0ac
2.11.1Cached · Upstream SHA-256 matchedDownload8b70f6e5…7d8ace
2.11.2Cached · Upstream SHA-256 matchedDownload288bcb94…8f4900
2.11.3Cached · Upstream SHA-256 matchedDownloaddf9d4ce3…e8b312
2.11.4Cached · Upstream SHA-256 matchedDownload57e61d60…78a0ba
2.11.5Cached · Upstream SHA-256 matchedDownloadc8e1d593…ab2492
2.12.0Cached · Upstream SHA-256 matchedDownload5377eaac…cb37de
2.13.0Cached · Upstream SHA-256 matchedDownload6afef1b4…4752d4
2.14.0Cached · Upstream SHA-256 matchedDownload28e30e00…f404ba
2.15.0Cached · Upstream SHA-256 matchedDownloadc8b02226…4ad3c8
2.16.0Cached · Upstream SHA-256 matchedDownload67f2fcc6…fe5c29
2.17.0Cached · Upstream SHA-256 matchedDownload43d9e951…8db8e9
2.17.1Cached · Upstream SHA-256 matchedDownload22fcb352…575a41
2.17.2Cached · Upstream SHA-256 matchedDownload6643fe3d…9d1a3d
2.17.3Cached · Upstream SHA-256 matchedDownload23509cb3…978712
2.17.4Cached · Upstream SHA-256 matchedDownloade8d1e22d…5fd11e
2.17.5Cached · Upstream SHA-256 matchedDownload362e5245…e2bd88
2.18.0Cached · Upstream SHA-256 matchedDownloadf4ee1704…78ce25
2.18.1Cached · Upstream SHA-256 matchedDownloadf967a713…b3b3e5
2.18.2Cached · Upstream SHA-256 matchedDownload9e69806b…2b4e5e
2.19.0Cached · Upstream SHA-256 matchedDownloadfbc008cf…ee956b
2.20.0Cached · Upstream SHA-256 matchedDownload0e13c80f…762678
2.21.0Cached · Upstream SHA-256 matchedDownloade47f5c27…5c8e41
2.21.1Cached · Upstream SHA-256 matchedDownloadfaa5a76f…651493
2.22.0Cached · Upstream SHA-256 matchedDownload129a34d1…929b23
2.23.0Cached · Upstream SHA-256 matchedDownloadddd72baa…f7326e
2.24.0Cached · Upstream SHA-256 matchedDownloadeb3afccf…bb20b3
2.24.1Cached · Upstream SHA-256 matchedDownload0ed0dc29…556c37
3.0.0Cached · Upstream SHA-256 matchedDownload5d28b14d…bb7b16
3.1.0Cached · Upstream SHA-256 matchedDownloadf7ee08fe…90094a
3.1.1Cached · Upstream SHA-256 matchedDownload61a51037…713b82
3.2.0Cached · Upstream SHA-256 matchedDownloadecde2def…5ec8ae
3.3.0Cached · Upstream SHA-256 matchedDownloadff18fabb…ded398
3.3.1Cached · Upstream SHA-256 matchedDownloada631bbfb…2bbf1f
3.4.0Cached · Upstream SHA-256 matchedDownload83e7356c…708084
3.5.0Cached · Upstream SHA-256 matchedDownload856ca92b…acfca6
3.5.1Cached · Upstream SHA-256 matchedDownload1399ab1f…205ebe
3.6.0Cached · Upstream SHA-256 matchedDownloaddc509625…76118c
3.6.1Cached · Upstream SHA-256 matchedDownload73b01cba…c3471b
3.7.0Cached · Upstream SHA-256 matchedDownload7c98f10b…0d9e57
3.8.0Cached · Upstream SHA-256 matchedDownload5ad1be84…1854f8
3.9.0Cached · Upstream SHA-256 matchedDownload30ba3ae5…7b55bf
3.9.1Cached · Upstream SHA-256 matchedDownloadddab99d7…8ca555
3.10.0Cached · Upstream SHA-256 matchedDownloadf471a288…1e04ea
3.11.0Cached · Upstream SHA-256 matchedDownloadde1e6782…fb8e91
3.12.0Cached · Upstream SHA-256 matchedDownload8ed84f50…fc2f6e
4.0.0Cached · Upstream SHA-256 matchedDownloadd5bf0dca…3304b4
4.1.0Cached · Upstream SHA-256 matchedDownload0ec9832b…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"