Coder Social home page Coder Social logo

Comments (16)

jgimenez avatar jgimenez commented on August 15, 2024

Hi @sarbogast , this project is an adapter (glue code) for the iOS and Android SDKs to work on Flutter, so it's not really meant to work on the web (I'm guessing the "web" label in pub.dev is misleading, I don't know why it's there). Bugfender is soon going to release a web SDK, so I guess it will be possible to also add the web SDK adapter in the future.

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

Sorry, there is no public API at the moment. Where did you see that? We might have to update the docs

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

Q: Does Bugfender only work with mobile devices?
We currently support iOS and Android. Other platforms will follow including web, Windows and macOS. For now, you can send logs from those through our API.

https://bugfender.com/faq/

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

Thanks, that page is really old and outdated. I deleted it.

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

Now that there is a web SDK for Bugfender, would it be possible to add web support to this package?

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

Yes, it is possible! If you'd like to contribute, please feel free to open a PR!

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

I looked into this, and it seems like logging in a Flutter app is done by the backend, which is not supported currently by Bugfender. Bugfender at the moment only supports web frontend logging, so for now this is not possible.

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

What do you mean be "it seems like logging in a Flutter app is done by the backend". There is no backend in a Flutter app, or at least it's completely independent. Even a Flutter web app works like a SPA, with a boat load of javascript doing stuff in the browser, and you don't need a backend to log, not a backend on a server anyway.

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

In that case I misunderstood how it works! When I run a flutter app with flutter run, the application is run by a server, not by static files. Bugfender could still be used, then, but I'm not really sure how. Unfortunately the flutter documentation for web is not very extensive yet.

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

The best information I found about that is here: https://medium.com/flutter/how-to-write-a-flutter-web-plugin-5e26c689ea1
And second part is here: https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

Thanks for the pointers. I found them but still they're pretty basic. Bugfender is distributed as an NPM package, so it would be good to find a way to import that package and then use it, just like it's possible to import iOS and Android packages using CocoaPods and gradle. I didn't find a way to do that (if it's possible)

from bugfendersdk-flutter.

sarbogast avatar sarbogast commented on August 15, 2024

I don't think it is possible, precisely because there is no node integration in the build system. We have the same problem with other plugins like the AppAuth one for oAuth authentication. Hopefully Google will release more documentation about how to port and develop plugins once Flutter web exits beta.

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

I see. In that case I think it would be better to wait for a npm support so we don't have to embed the JS file in the plugin itself. I guess then it would be a matter of loading that script with a <script> tag and bridge all the calls, similar to this: https://medium.com/flutter-community/using-javascript-code-in-flutter-web-903de54a2000

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

@sarbogast since you were interested in this, I'd love your feedback on #14 if you'd like to test

from bugfendersdk-flutter.

jgimenez avatar jgimenez commented on August 15, 2024

Published in 2.0.0-web.1

from bugfendersdk-flutter.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.