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

Use classic bluetooth with flutter in android studio #23562

Closed
ViasVegas opened this issue Oct 26, 2018 · 8 comments
Closed

Use classic bluetooth with flutter in android studio #23562

ViasVegas opened this issue Oct 26, 2018 · 8 comments
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. would be a good package Separate Flutter package should be made for this

Comments

@ViasVegas
Copy link

ViasVegas commented Oct 26, 2018

I am creating an application for Android/Ios on Flutter in Android studio. This application has to get serial data from a classic bluetoth device.

I am new to Flutter. I have found a package: flutter_blue that allows to scan and connect to BLE device. I tried it and it only perform BLE scan and doesn't detect classic Bluetooth devices. I'd like to find a similar package for Bluetooth classic.

Is there any package on https://pub.dartlang.org/flutter that would allow me to do that ? Or lower level function to scan, connect and get the stream of my device?

@ViasVegas
Copy link
Author

After asking the same thing on stack overflow: https://stackoverflow.com/questions/53005941/use-classic-bluetooth-on-flutter it seems, that it is not possible to desing application with flutter that use classic bluetooth on iOS.

@MisterJimson
Copy link

Yes on iOS Classic Bluetooth is very limited, you pretty much need to use BLE.

On Android you can do either. I don't know of any packages for Classic Bluetooth, but you can write the platform implementations with Platform Channels.

https://flutter.io/platform-channels/

@zoechi zoechi added c: new feature Nothing broken; request for a new capability would be a good package Separate Flutter package should be made for this labels Oct 27, 2018
@zoechi zoechi changed the title Use classic bluetoth with flutter in android studio Use classic bluetooth with flutter in android studio Dec 11, 2018
@zoechi zoechi added this to the Future milestone Dec 11, 2018
@juliocbcotta
Copy link

So... it looks like there a few ble packages in https://pub.dev/flutter/packages?q=ble
Would any of it solve your issue? Maybe opening an issue in some of the current packages would be the best approach to solve this issue.

@kf6gpe kf6gpe added the P6 label May 29, 2020
@kf6gpe kf6gpe removed this from the Future milestone Jun 1, 2020
@afarre
Copy link

afarre commented Oct 21, 2020

There is this plugin, published in Aug, 19, used for a classic bluetooth serial implementation.

Besides, @ViasVegas the link you provided from stack overflow is broken. Could you retreive it please?

I intend to write a classical bluetooth app in flutter too. I'd like to know if in 2020 there is any way of developing a flutter app with bluetooth support in android and iOS (not BLE as it does no meet my requirements), and maybe in yout stack post I can find an updated answer to this question.

@sriteja777
Copy link

sriteja777 commented Dec 29, 2020

Is there any bluetooth classic api for android in flutter? In my app, I just need to get those devices and connect to them (with Android inbuilt bluetooth manager) but I don't want to handle low level stuff. I tried but I was not able to find any package.

Basically I would like the app to connect to headphones. So handling many profiles at lower level will be difficult. So is there any api for that?

@mohitjadav86
Copy link

is there any one find anything on this ?

@stuartmorgan stuartmorgan added package flutter/packages repository. See also p: labels. and removed plugin labels Mar 9, 2023
@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@stuartmorgan
Copy link
Contributor

Closing as a duplicate of #53493, which has more discussion.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. would be a good package Separate Flutter package should be made for this
Projects
None yet
Development

No branches or pull requests

9 participants