# rn-android-ble-watcher

> Watches for Bluetooth Connections

Latest version **0.1.5** (published 2022-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-android-ble-watcher
pnpm add rn-android-ble-watcher
yarn add rn-android-ble-watcher
bun add rn-android-ble-watcher
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2022-03-09 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 107 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Damo Salmon |
| Maintainers | damocodefish |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/rn-android-ble-watcher
- Repository: https://github.com/CodeFishStudio/rn-android-ble-watcher
- Homepage: https://github.com/damocodefish/rn-android-ble-watcher#readme
- Issues: https://github.com/damocodefish/rn-android-ble-watcher/issues
- npm.io page: https://npm.io/package/rn-android-ble-watcher

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2022-03-09
- 0.1.4 — 2021-12-12
- 0.1.3 — 2021-12-12
- 0.1.2 — 2021-11-23
- 0.1.1 — 2021-11-22
- 0.1.0 — 2021-11-22

## README

# React Native Android BLE Watcher

Watches for Bluetooth Connections and runs background task

## Installation

```sh
npm install rn-android-ble-watcher
```

## Usage

BackgroundTask.js
```js
module.exports = async (args) => {
    console.log('Background task called', args);
};
```


```js
import {AppRegistry} from 'react-native';

import { configure, startMonitoring, stopMonitoring} from "rn-android-ble-watcher";

import BackgroundTask from './BackgroundTask.js';

AppRegistry.registerHeadlessTask('MyBackgroundTask', () => BackgroundTask);

// ...
configure({
    notification: {
        channelId:'MyExampleApp',
        channelName: 'My Example App',
    },
});

// Starts monitoring for device with address FF:FF:FF:FF:FF:FF and runs MyBackgroundTask
startMonitoring('FF:FF:FF:FF:FF:FF', 'MyBackgroundTask');

// stopMonitoring();

```

---
_Source: https://npm.io/package/rn-android-ble-watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
