[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase-database not working on desktop #33575

Closed
bmaczak opened this issue May 30, 2019 · 6 comments
Closed

Firebase-database not working on desktop #33575

bmaczak opened this issue May 30, 2019 · 6 comments
Labels
a: desktop Running on desktop p: firebase_database The Firebase Database plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels. platform-linux Building on or for Linux specifically platform-mac Building on or for macOS specifically platform-windows Building on or for Windows specifically

Comments

@bmaczak
Copy link
bmaczak commented May 30, 2019

When building for desktop (macOS) the firebase-database plugin throws an exception. Is Firebase not supported on desktop yet?

Log:

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method Query#observe on channel plugins.flutter.io/firebase_database)
#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)
<asynchronous suspension>
#1      Query._observe.<anonymous closure> (package:firebase_database/src/query.dart:53:38)
#2      _runGuarded (dart:async/stream_controller.dart:805:24)
#3      _BroadcastStreamController._subscribe (dart:async/broadcast_stream_controller.dart:213:7)
#4      _ControllerStream._createSubscription (dart:async/stream_controller.dart:818:19)
#5      _StreamImpl.listen (dart:async/stream_impl.dart:472:9)
#6      Stream.first (dart:async/stream.dart:1188:25)
#7      Query.once (package:firebase_database/src/query.dart:90:55)
<asynchronous suspension>
#8      new RobotsScreen (package:example_flutter/robots.dart:9:42)
...
@stuartmorgan
Copy link
Contributor

Currently no plugins support the desktop platforms, as the plugin APIs are not yet stable.

@stuartmorgan stuartmorgan added p: firebase Firebase plugins p: firebase_database The Firebase Database plugin plugin platform-mac Building on or for macOS specifically platform-windows Building on or for Windows specifically platform-linux Building on or for Linux specifically labels May 30, 2019
@stuartmorgan stuartmorgan added the a: desktop Running on desktop label Jul 26, 2019
@stuartmorgan
Copy link
Contributor

For context, this was closed because the Firebase plugins are implemented by wrapping the native Firebase SDKs for iOS and Android. Firebase doesn't have desktop SDKs, so there's currently nothing to implement desktop versions of the plugins on top of. If that changes in the future, this can be revisited.

@kroikie
Copy link
kroikie commented Oct 13, 2019

@bmaczak

This issue has been moved to firebase/flutterfire#367. Any further collaboration will be done there.

@bmaczak
Copy link
Author
bmaczak commented Oct 15, 2019

But it has been closed... ?

@ScottPierce
Copy link

Isn't there a c++ library that firebase provides that allows firebase to be wrapped for the desktop?

@stuartmorgan
Copy link
Contributor

If you want to discuss further, the FirebaseExtended version of the bug linked above. is the right place now that the plugins have moved.

However, I would recommend reading the highlighted section here first.

@flutter flutter locked as off-topic and limited conversation to collaborators Feb 3, 2020
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: desktop Running on desktop p: firebase_database The Firebase Database plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels. platform-linux Building on or for Linux specifically platform-mac Building on or for macOS specifically platform-windows Building on or for Windows specifically
Projects
None yet
Development

No branches or pull requests

5 participants