Comments (6)
Flutter creates a new profile for chrome when you use flutter run
.
I've created documentation on how to get enable the feature flag anyway see https://github.com/jeroen1602/flutter_web_bluetooth/blob/master/chrome-experimental-launch/README.md
from flutter_web_bluetooth.
Thank you for the help,
I have created a patch file but I can't enable the experimental flag in browser.
Screenshots/ GIF
Screencast.from.18-08-23.12.32.04.PM.IST.webm
could you please help me out
from flutter_web_bluetooth.
It looks like you ran the patch in your own project. But you need to patch your flutter installation.
If you run
where flutter
Then you will get the path where flutter is installed for you. For me it is /home/jeroen/bin/flutter/bin/flutter
.
In my case I would need to run the patch from /home/jeroen/bin/flutter
, the root directory of the flutter installation.
After that don't forget to remove bin/cache/flutter_tools.snapshot
so that flutter needs to rebuild in order to work.
I hope this helps. You will need to run this patch again after each flutter update. (And update using flutter upgrade --force
because it will detect changes in your installation)
from flutter_web_bluetooth.
As you mentioned, I've moved the patch file to the root directory where flutter is installed. Now how do I run this patch file in this directory.
from flutter_web_bluetooth.
You need to move the patch one folder up, it's currently in the bin folder of flutter and not in the flutter root folder.
Once you have done that open the terminal (right click Open in terminal). You can check if the terminal opened in the correct folder by running ls
and you'd see the same file list as in the file manager.
Now run (you can use tab completion for the file name)
patch -p1 < Add-experimental-launch-flag.patch
Now if everything went correctly your flutter should be patched. However the flutter build is still cached, so go into the bin/cache
folder and delete flutter_tools.snapshot
.
If you run flutter it should recreate this snapshot and should be patched to open chrome with the correct flag on
from flutter_web_bluetooth.
@jeroen1602 Thanks for your support.
from flutter_web_bluetooth.
Related Issues (20)
- Struggling with BluetoothCharacteristic.value HOT 2
- Error with brand new Flutter project HOT 2
- Unable to read data using .value property from a BluetoothCharacteristic object. HOT 6
- Misleading description on pub.dev HOT 4
- Support for getting list of characteristics from a service
- Can't find any service HOT 6
- MTU HOT 6
- Can We Get Manufacturer Data or FilterOption by Manufacturer data HOT 5
- How to determine the current connected device ? HOT 1
- Signal strength HOT 3
- Getting meta dependency issue HOT 1
- Thermal Printers compatibility?
- Interaction between Flutter web app and Flutter mobile app HOT 2
- Unable to getting Services of Bluetooth Device HOT 3
- Add exclusion filters
- Manufacturer Data Map is empty in advertisements HOT 6
- Support Notifications
- Cannot listen for changes on characteristic.startNotifications() HOT 5
- Couldn't find all of the services! HOT 4
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 flutter_web_bluetooth.