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

Can this be used? #90

Open
Johan-dutoit opened this issue Nov 9, 2020 · 2 comments
Open

Can this be used? #90

Johan-dutoit opened this issue Nov 9, 2020 · 2 comments

Comments

@Johan-dutoit
Copy link

Hi,

Firstly, thanks for the great library ble-plx, it's been of tremendous use.

As per the title, is the emulator ready to be used? What's the state of it, etc?
If not, are there any areas that I can help contribute towards?

Cheers

@mikolak
Copy link
Collaborator

mikolak commented Nov 9, 2020

Hi!

react-native-blemulator is feature complete on Android and can be used there, but iOS is barely started and any attempt at using it will result in exceptions thrown (best case scenario) or nothing at all (worst case scenario).

I'm tracking work here: https://github.com/Polidea/react-native-blemulator/projects/1
but since I was the only one working on it, they are barely described at all. iOS part has to be written in Objective-C to avoid any unnecessary issues with Swift compatibility (we have plans to migrate MultiPlatform BLE Adapter to pure obj-c as well). There are two references points: Android implementation and Flutter's BLEmulator (https://github.com/Polidea/blemulator_flutter/tree/master/ios/Classes)

As you can see I have a WIP MR to set up the communication between JavaScript and Obj-C, but I didn't have to time to get back to it since August. All help would be appreciated.

Communication is a blocking feature at the moment, nothing else can be implemented until it's up and running.
Since it's not ready on both platforms I haven't yet started working on the README, so you might need to look at the example (https://github.com/PolideaPlayground/RN-BLEmulator-example) and the Flutter's one README.

If you'd like to help with development, you can use the example as the development project. Example's using a local copy of the library, both must be in the same directory, ie. projects/react-native-blemulator and project/rn-blemulator-example.

Cheers

tl;dr you're good to go on Android, it won't even start on iOS.

@orome
Copy link

orome commented Apr 18, 2022

Is this still nonfunctional on iOS?

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

No branches or pull requests

3 participants