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

is it useable for android? #78

Open
MatejMagat305 opened this issue Sep 11, 2021 · 12 comments
Open

is it useable for android? #78

MatejMagat305 opened this issue Sep 11, 2021 · 12 comments
Labels
enhancement New feature or request

Comments

@MatejMagat305
Copy link

Hi I m coding in https://github.com/fyne-io/fyne, and it can run on android, it this library suitable for android?

@deadprogram
Copy link
Member

Hello @MatejMagat305 not at this time. I will look into what would be required, but seems like it would take quite a bit of work.

@deadprogram deadprogram added the enhancement New feature or request label Sep 18, 2021
@gedw99
Copy link

gedw99 commented Sep 20, 2021

I was going to ask exactly the same thing.

I am building hardware with haptics and ble, and from the APP need to communicate it. I use GIO not fyne.

@MatejMagat305
Copy link
Author

I was going to ask exactly the same thing.

I am building hardware with haptics and ble, and from the APP need to communicate it. I use GIO not fyne.

it never mind wheter fyne or gio(although in my opinion it fyne more clear, but it is only my.......), mainly it will wonderfull when this library will suport android maybe the authors might also think about iOS, but I think the android is more comon and opensource........

@MatejMagat305
Copy link
Author

MatejMagat305 commented Dec 28, 2021

I was trying (my experimental library: bluetooth) and after that I was searching how it is on android and it will be able after implemention of permision therefore I create isues: golang/go#50104. Although jni in android show own implementation of socket, it still use #include <sys/socket.h>, which I suppose is (in golang implementation) in unix package, what do you think?

@stevekuznetsov
Copy link

@deadprogram is there a good doc to understand what's different about the Android BLE stack to get a better idea of what would be necessary to support that in this library? I would like to write a cross-platform app using BLE but am stuck without support for BLE on Android in Go. If It's something accessible, I might be able to work on this support for the library here.

@MatejMagat305
Copy link
Author

MatejMagat305 commented Mar 26, 2022

@stevekuznetsov I was trying implement it like socket (above), but now I think we need resolve: golang/go#50104, and maybe only way how implement it is jni, I want implement some part (read, write with bluetoothadapter) in summer, do you join to me?

@stevekuznetsov
Copy link

@MatejMagat305 I am not very familiar with the system so I'd have to understand more about how Android wants to handle BLE first, but maybe!

@MatejMagat305
Copy link
Author

@stevekuznetsov so, I m not big expert to Android OS, but .............., I would like have bluetooth access from go ............

@MatejMagat305
Copy link
Author

maybe it is already implemented in https://git.wow.st/gmp/ble

@Sakura0721
Copy link

Have you made it work on android?

@MatejMagat305
Copy link
Author

MatejMagat305 commented Jun 4, 2023

Have you made it work on android?

well yes, but only for fyne and it is not (until now) tested, it could be easy to port to other library which provide env, vm and ctx like gomobile: fyne-io/fyne-x#58

@Solander
Copy link

Solander commented Sep 2, 2023

Have you made it work on android?

well yes, but only for fyne and it is not (until now) tested, it could be easy to port to other library which provide env, vm and ctx like gomobile: fyne-io/fyne-x#58

I guess it takes some work, but it would be amazing if this was a working library that was released! I'm trying to do exactly this with Fyne, so I will take a closer look at your PR and see if I can try it.
Great job!
Hopefully it will help tinygo as well. I like that interface for interacting with Bluetooth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants