Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-bluetooth-cache-manager

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-bluetooth-cache-manager

A React Native module to refresh Bluetooth GATT cache

  • 1.0.1-beta.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
367
Maintainers
0
Weekly downloads
 
Created
Source

React Native Gatt Cache Refresh

Easily refresh the GATT cache for Bluetooth devices in your React Native application. This package simplifies invoking the GATT refresh functionality on Android devices.


Installation

Install the package using npm or yarn:

npm install react-native-bluetooth-cache-manager

or

yarn add react-native-bluetooth-cache-manager

Autolinking Support

This package supports autolinking for React Native 0.60 and above. No manual linking is required for most configurations.


Usage

Import the Module

You can use the module in your React Native project as follows:

import RNGattCacheRefresh from 'react-native-bluetooth-cache-manager';

// Example usage
RNGattCacheRefresh.refreshCache(deviceId, (error, result) => {
  if (error) {
    console.error('Failed to refresh GATT cache:', error);
  } else {
    console.log('GATT cache refreshed successfully:', result);
  }
});

Parameters for refreshCache

  • deviceId: The unique identifier (MAC address) of the Bluetooth device.
  • Callback: Function to handle success or failure of the GATT cache refresh.

Requirements

  • React Native: Version 0.60 and above
  • Android: API Level 31 (Android 12) and above
  • Permissions: Ensure the BLUETOOTH_CONNECT permission is granted in your app.

Contributing

Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.


License

This project is licensed under the MIT License.


Notes

  • This package only supports Android. It does not have iOS compatibility.

Keywords

FAQs

Package last updated on 18 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc