GithubHelp home page GithubHelp logo

Comments (29)

Shakarang avatar Shakarang commented on July 28, 2024 2

@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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

not from me

from react-native-ble.

NishanthShankar avatar NishanthShankar commented on July 28, 2024

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.

niftylettuce avatar niftylettuce commented on July 28, 2024

+1

from react-native-ble.

niftylettuce avatar niftylettuce commented on July 28, 2024

@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.

rclai avatar rclai commented on July 28, 2024

@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.

Shakarang avatar Shakarang commented on July 28, 2024

@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.

rclai avatar rclai commented on July 28, 2024

It's here https://github.com/Profab/react-native-ble/tree/updates

from react-native-ble.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

@Shakarang let us know if you get something that can be PR'ed

from react-native-ble.

Shakarang avatar Shakarang commented on July 28, 2024

@jacobrosenthal Yep but currently I have no time with my work and school..

from react-native-ble.

rclai avatar rclai commented on July 28, 2024

@Shakarang would you mind if I pick up from where you left off with the Android implementation?

from react-native-ble.

Shakarang avatar Shakarang commented on July 28, 2024

@rclai Hey ! You can do it if you want. I will work on it on Saturday morning too.

from react-native-ble.

Shakarang avatar Shakarang commented on July 28, 2024

@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.

rclai avatar rclai commented on July 28, 2024

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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

Can you guys check out @Shakarang's PR?
#11

from react-native-ble.

eriihine avatar eriihine commented on July 28, 2024

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.

eriihine avatar eriihine commented on July 28, 2024

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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

@eriihine Thanks for posting, Ill check yours out as well when I get a chance.

from react-native-ble.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

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.

ferologics avatar ferologics commented on July 28, 2024

@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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

@eriihine could clarify

from react-native-ble.

eriihine avatar eriihine commented on July 28, 2024

@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.

Shakarang avatar Shakarang commented on July 28, 2024

@jacobrosenthal ?

from react-native-ble.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

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.

Shakarang avatar Shakarang commented on July 28, 2024

@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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

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.

franrios avatar franrios commented on July 28, 2024

Is android support available yet?

from react-native-ble.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

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.

jacobrosenthal avatar jacobrosenthal commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.