React-native-ble-plx: [Android] Turn on Bluetooth

Created on 14 Nov 2016  路  19Comments  路  Source: Polidea/react-native-ble-plx

I don't know if this is in the scope of this library but it would be really nice to include in this library a function that enables/disables Bluetooth. I know this only works for Android but it would still be useful.

Found some examples here: http://stackoverflow.com/a/20142972/1836121

enhancement help wanted

Most helpful comment

@JasiuHimself Feature is implemented on the v1.0 branch. After proper testing, I plan to land it on the master.

All 19 comments

Thank you for a suggestion. I'll definitely add it to library.

@Cierpliwy any news on this feature?

I don't have enough time right now to implement this feature. Also for 0.5 release I plan to focus on support for background mode, as it's very important for users of this library. I'll definitely welcome more contributions :)

Alright, that's totally understandable of course.
If it becomes a requirement from my side, I might do a pull request, but for now it's just a nice to have and pretty low priority.

Did this ever make it in the code base? @Cierpliwy

No updates on this feature?

I'm thinking of working on this issue on my free time! Will submit a pull request.

any updates?

@saeedvaziry I started working on a PR but I still need to do some further testing. See: #139

This option is not available on iOS, however for iOS we can make it so that it redirects to the control panel to enable it as described here :

https://stackoverflow.com/a/36129124

To unify it, we should probably prompt the user on Android. I'm not a fan of applications enabling stuff in my back without asking me if I disabled it.

any news on this feature?

I find this missing feature really important. Some of the libraries have already implemented this:
https://www.npmjs.com/package/react-native-bluetooth-status
https://github.com/innoveit/react-native-ble-manager

But still ble-plx seems to be the best library for BT, I might contribute if will find free time.

Any news?

@JasiuHimself Feature is implemented on the v1.0 branch. After proper testing, I plan to land it on the master.

Amazing, can't wait!

When is v1.0 expected to be public @Cierpliwy ?

How to turn on the bluetooth, I am not able to find any function to do so in documentation.

@a1lu It's only for Android, because iOS doesn't provide any API to do the same thing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulclark94 picture paulclark94  路  3Comments

brycejacobs picture brycejacobs  路  5Comments

alfacommunication-alessandro picture alfacommunication-alessandro  路  3Comments

mitaxe picture mitaxe  路  3Comments

biks152207 picture biks152207  路  3Comments