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

Using Noble on iOS trough react-native-ble #21

Open
danielcbit opened this issue Nov 20, 2016 · 2 comments
Open

Using Noble on iOS trough react-native-ble #21

danielcbit opened this issue Nov 20, 2016 · 2 comments

Comments

@danielcbit
Copy link

I'm having some problems running react-native-ble and with the deep shim react-native-ble for noble.

My goal is to use the node-eddystone-beacon-scanner.

I tried using rn-nodeify as told but whenever I try to get an instance of noble directly I get unable to resolve bluetooth-hci-socket from noble/lib/hci-socket.

Has any one used this with iOS? Is it possible?

Also, the same code would work on Android?

Thanks.

@danielcbit
Copy link
Author

Just one update, I managed to instantiate and use the eddystone-beacon-scanner package but I had to manually add "noble": "react-native-ble", in the package.json of eddystone-beacon-scanner.
The rn-nodeify shouldn't take care of this?

Steps I took:
Install react-native-ble
Install eddystone-beacon-scanner
Install rn-nodeify
run rn-nodeify
Change eddystone-beacon-scanner package.json manually and add "noble": "react-native-ble" under "react-native" and under "browser"

Have I done something wrong or is is there any adicional step?

@warrenronsiek
Copy link

warrenronsiek commented Dec 14, 2016

I installed in the manner you described and manually changed the package.json files before running the app. Everything worked. I removed the package.json changes you described, rebuilt and everything still works.

Addendum: after waiting a bit, the app stopped working. Re-introducing the manual json changes solved the problem.

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

2 participants