Comments (16)
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.
from bugfendersdk-flutter.
Sorry, there is no public API at the moment. Where did you see that? We might have to update the docs
from bugfendersdk-flutter.
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.
from bugfendersdk-flutter.
Thanks, that page is really old and outdated. I deleted it.
from bugfendersdk-flutter.
Now that there is a web SDK for Bugfender, would it be possible to add web support to this package?
from bugfendersdk-flutter.
Yes, it is possible! If you'd like to contribute, please feel free to open a PR!
from bugfendersdk-flutter.
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.
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.
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.
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.
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.
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.
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.
@sarbogast since you were interested in this, I'd love your feedback on #14 if you'd like to test
from bugfendersdk-flutter.
Published in 2.0.0-web.1
from bugfendersdk-flutter.
Related Issues (14)
- Need to update SDK - can't use it with latest flutter HOT 1
- How to forward and collect debugPrint() and log() console logs? HOT 1
- Null-safety support
- The plugin `flutter_bugfender` uses a deprecated version of the Android embedding HOT 4
- Could not resolve all artifacts for configuration ':flutter_bugfender:classpath'. HOT 1
- Publish 2.0.1 to pub.dev HOT 2
- Failing to build with 2.0.1 HOT 2
- Why specify `build-tools` separately? HOT 2
- Unable to load Maven meta-data from https://jcenter.bintray.com/com/bugfender/sdk/android/maven-metadata.xml. HOT 13
- Can't update project gradle to 8.0 HOT 3
- Updating the package on pub.dev HOT 5
- Support for androidx compatible flutter projects HOT 4
- Support for setForceEnabled()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugfendersdk-flutter.