Closed qdot closed 2 years ago
@trobanga Oh nice, thanks! I'd been waiting on frb v2 to go stable first, this'll be a nice guide once that's ready. Looks nice and clean!
Has there been any follow-up on a guide for getting this working? I'm about to start the process myself. And the info seems fragmented... See how I go! @qdot
Hi everyone,
I'm creating a Tauri plugin to use thermal printers. The plugin handles all permissions (ask and check) to use BLE. The crate btleplug is wrapped in a crate called eco_print. It works on desktops, but I'm having trouble making it work on mobile (Android).
I'm trying to find a way to build the crate for use in my plugin, tauri-plugin-escpos. However, I'm not sure about the exact steps needed to build the crate for Android. Any guidance on this would be greatly appreciated.
Thank you!
Hi @lnxdxtf
I would recommend taking a look at my repo. I have a tauri app with bluetooth for an indoor bike: https://gitlab.com/loikki/open-biking
The modifications to the android files are all located in android-files
and the commands for building / running are in my Makefile. If you have any question, feel free to open an issue in my repo
For anyone that gets btleplug running on android, please let me know! I'll try to remember to add project listings to the readme so other people can use them as examples. Posting project links here is fine.
Same idea as blurmac. Fork bluedroid, bring in code, fit to whatever our API surface is.