React Native Bluetooth - control app with bluetooth - android

I am working on an app in react native, and I have to connect it with a device through bluetooth. From the device I can control my application, has anyone worked with something similar?
There is very little information on the internet about it.

Check out React Native BLE Manager. This library is designed for Bluetooth-low-energy devices' integration with React Native.

Related

How to detect a attached/detached peripheral in react native?

How can i detect the connection or disconnection of a external peripheral (like a microphone) in React Native at runtime?
I need to it for both iOS and Android devices.

Communication between cordova app and native app?

I am building a cordova app which will communicate with a device using BLE in background using https://github.com/don/cordova-plugin-ble-central
Here are the challenges I am facing :
I want this app to be kind of a service to be used by another native app i.e communication between cordova and native app. I assume both apps need to be opened in background or one of them in foreground for this to work. Is it possible? How?
This cordova app will be a separate apk. But is it possible that it can be a part of native app so that user only have to install the native app without installing the cordova app separately?
Such app which continuously scans for Bluetooth Low Energy (BLE) peripherals is eventually be cleared by mobile OS to conserve battery. Is there any way to have it opened in background all the time. I know in android you can disable battery optimizations for a particular app. But what about IOS?
Is it maintainable across different platforms(both IOS and android)? Or native implementation will be a better choice?

BLE gattserver with iOS

I am developing one app which uses bluetooth low energy for communication between device and App. My device is peripheral and App is central.While developing Android app, I have added some custom ble services by creating gattserver on android app side and it is working ok. Now i want to achieve same thing with iOS.
My question is how to add gattserver in iOS app? Or iOS used some other procedure to achieve the same.
I belive iOS uses the CoreBluetooth system to achive this. Check out this example
https://developer.apple.com/library/content/samplecode/BTLE_Transfer/Introduction/Intro.html
There are like on Android two modes, Central and Peripheral. You want to be the in the Central mode here too. Then it should work similar to the Android GATT server.
Thanks Jotunacorn for your link
This link help me to solve my issue
Implement gattserver on iPhone

Make Android device act as an iBeacon

I'm looking for plugins in cordova, to make an app in ionic that acts as Beacon.
My app now can view the beacons and also connect to them but I didn't found a plugin to make my smartphone a beacon. Is that a way to crat that plugin? Maybe in cordova ? I want it for android, any suggestion? I googled but nothing. Thanks

Talking from Android Adobe AIR application to local computer through USB

In Flash Builder, there is USB Debugging feature for mobile applications built with Adobe AIR. It lets application installed on Android devise to transmit errors and trace statements to Flash Builder.
I need to develop the same feature for my application: Android application built with Adobe AIR talks to application on my local PC.
Does anybody know what technology it could be achieved with? Do they use serial port communication, or local server? Does anybody have a piece of code that does a similar thing?
Note: I'm not interested in network debugging, just USB Debugging.
I just googled and found this video:
[http://www.hsharma.com/tutorials/flash-builder-4-7-usb-debugging-on-ios/][1]

Categories

Resources