title: Flutter firebase realtime database in web
body: <p>I'm trying to get my flutter app working in the browser and it depends on firebase_database. There is not really any documentation for how to do this, but I'm making some assumptions based off the firebase_core and firebase_auth documentations:</p>
  
  <ul>
  <li><p><a href="https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_core/firebase_core_web" rel="noreferrer">https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_core/firebase_core_web</a></p></li>
  <li><p><a href="https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth_web" rel="noreferrer">https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth_web</a></p></li>
  </ul>
  
  <p>My app is working on iOS and android, but I'm having trouble getting the database working in flutter web.</p>
  
  <p>I've set up my index.html:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Flutter WebRTC Demo&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-app.js"&gt;&lt;/script&gt;
      &lt;script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-database.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          const firebaseConfig = {
              apiKey: '...',
              authDomain: '...',
              databaseURL: '...',
              projectId: '...',
              storageBucket: '...',
              messagingSenderId: '...',
              appId: '...'
          };
          firebase.initializeApp(firebaseConfig);
      &lt;/script&gt;
      &lt;script src="main.dart.js" type="application/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But, when I try to use the firebase database, I get errors in the logs:</p>
  
  <pre><code>MissingPluginException(No implementation found for method DatabaseReference#set on channel plugins.flutter.io/firebase_database)
  package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49  throw_
  package:flutter/src/services/platform_channel.dart 319:7                              invokeMethod
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 47:50            onValue
  package:dart-sdk/lib/async/zone.dart 1381:54                                          runUnary
  package:dart-sdk/lib/async/future_impl.dart 139:18                                    handleValue
  package:dart-sdk/lib/async/future_impl.dart 680:44                                    handleValueCallback
  package:dart-sdk/lib/async/future_impl.dart 709:32                                    _propagateToListeners
  package:dart-sdk/lib/async/future_impl.dart 524:5                                     [_completeWithValue]
  package:dart-sdk/lib/async/future_impl.dart 554:7                                     callback
  package:dart-sdk/lib/async/schedule_microtask.dart 43:11                              _microtaskLoop
  package:dart-sdk/lib/async/schedule_microtask.dart 52:5                               _startMicrotaskLoop
  package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 168:15           &lt;fn&gt;
  </code></pre>
  
  <p>Is there any way I can get the realtime database working in my flutter app on the web?</p>