Comments (29)
@TrySpace I'm building the Android support on my fork of the repo. I've continued iOS development to read characteristics valued and it will be the same for Android
from react-native-ble.
not from me
from react-native-ble.
You can have a look at https://github.com/axemclion/react-native-cordova-plugin to integrate cordova pugins with react-native android
from react-native-ble.
+1
from react-native-ble.
@NishanthShankar Do you know how to get it to work with RN 0.18+? See axemclion/react-native-cordova-plugin#14 when I try to use it in combination with https://github.com/randdusing/cordova-plugin-bluetoothle
from react-native-ble.
@Shakarang, would you like to collaborate together to get our changes to this repo? I noticed you've done a lot on the Android side. I've dealt mostly on the iOS side and was able to remove a lot of the noble code and just directly depend on the noble
library.
from react-native-ble.
@rclai I'll be really pleased to collaborate with you. Where did you code it? I can't find it in any branch..
from react-native-ble.
It's here https://github.com/Profab/react-native-ble/tree/updates
from react-native-ble.
@Shakarang let us know if you get something that can be PR'ed
from react-native-ble.
@jacobrosenthal Yep but currently I have no time with my work and school..
from react-native-ble.
@Shakarang would you mind if I pick up from where you left off with the Android implementation?
from react-native-ble.
@rclai Hey ! You can do it if you want. I will work on it on Saturday morning too.
from react-native-ble.
@rclai Can you contact me on my email address please? It will be easier to exchange together.
It's [email protected]
from react-native-ble.
Sure. I've been pretty busy lately so I don't know how much time I'll have to work on this, I'll let you know.
from react-native-ble.
Can you guys check out @Shakarang's PR?
#11
from react-native-ble.
There's also following fork of react-native-ble for Android:
Most of the functionality is there (although not all) and it is still work in progress.
This one uses the newer Android BLE API (API level 21 and up only). It also uses ScanRecord to parse scan result in more detail (e.g. includes manufacturerData, advertisement service data and characteristic properties on characteristic discovery). I have tried to keep the API as close noblejs as possible
Just thought to mention this as well, in case someone is looking for API level 21 based solution. Would have pitch in here earlier, but noticed this thread just now.
edit: There's also support for Android lifecycle events (onPause/onDestroy). Although this might still require more work. Currently BLE connection disconnected automatically on pause.
from react-native-ble.
I probably will be working on the above android fork still on June and in August (bug fixes and remaining missing features). The target is to have it more or less ready at the end of august.
Would be happy to contribute this as well if needed.
from react-native-ble.
@eriihine Thanks for posting, Ill check yours out as well when I get a chance.
from react-native-ble.
Any android people want to check these out. We have 2 competing options apparently
Can we turn them into separate bindings and load the appropriate one based on a version check?
from react-native-ble.
@jacobrosenthal isn't https://github.com/eriihine/react-native-ble/tree/combined the latest version? I'm thinking of testing it
from react-native-ble.
@eriihine could clarify
from react-native-ble.
@ferologics You should checkout the android branch:
https://github.com/eriihine/react-native-ble/tree/android
The combined branch contains one minor tweak for iOS + android changes (ble.write event is sent out when writing to characteristic using withoutResponse parameter i.e. no response is needed from BLE but the event is send out in immediately after the write request has been processed). The iOS change is not needed necessarily.
The android branch contains only android specific changes.
from react-native-ble.
from react-native-ble.
I presume your question is, have I looked at your fork yet? I havent and I havent got reports back from anyone else here either sadly. Have you looked at @eriihine's?
Ive got a nex5 here though in preparation but mainly Im working with @sandeepmistry to build tests around bindings layers so I can verify functionality (especially since Im not an android or java guy)
from react-native-ble.
@jacobrosenthal Yes it was it, sorry.
I've looked @eriihine's branch and it seems better than mine. I'm not specialised in Android so I may have some issues.
Do you think it will be available in the next weeks?
from react-native-ble.
Do I understand that you would prefer his merged over yours? Is there some features or anything about your branch that should be kept?
from react-native-ble.
Is android support available yet?
from react-native-ble.
In the forks seen here. We need testers.
On Thu, Sep 8, 2016 at 12:57 PM, Fran [email protected] wrote:
Is android support available yet?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb0dIPbYd5TU2EbSK8LlNMCxNuDxE06ks5qoD5pgaJpZM4GDwOm
.
from react-native-ble.
I merged @eriihine's work for now as 1.0.7 and have a very simple example 'working' called advertisement_discovery. Im sure there are outstanding issues though, so please do try it.
from react-native-ble.
Related Issues (20)
- noble.state is `unsupported` on evey other launch (iOS) HOT 2
- Build Fail with RN v .0.40.0 'sendDeviceEventWithName:body:' is deprecated
- ios simulator app crashing with react-native-ble library installed HOT 2
- Error with running App with react-native-ble on Android in debug mode HOT 3
- Unable to resolve module 'url' HOT 6
- Evaluate react-native-ble-plx native code HOT 4
- noble.on is not a function HOT 2
- sendDeviceEventWithName:body is deprecated
- noble characteristic write error : 'Invalid parameter not satisfying: data != nil'
- Cannot subscribe to multiple characteristics HOT 3
- Cannot read property 'getState' of undefined HOT 2
- discoverIncludedServices not implemented for Android
- Can't read descriptor value
- Can't get characteristics list of a service HOT 3
- Crash on iOS HOT 4
- Eddystone protocol
- Different UUID format when running in my RN app and directly from noble/example/advertisement.js HOT 5
- List of characteristics are empty in service HOT 1
- Use Polidea's BLE for android and iOS under the hood
- How to advertise?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-ble.