Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@matthewwarnes/react-native-ble-manager-plugin
Advanced tools
Readme
Based on @config-plugins/react-native-ble-plx
Config plugin to auto-configure react-native-ble-manager
when the native code is generated (expo prebuild
).
Tested against Expo SDK 46
This package cannot be used in the "Expo Go" app because it requires custom native code. First install the package with yarn, npm, or
expo install
.
expo install react-native-ble-manager @matthewwarnes/react-native-ble-manager-plugin
After installing this npm package, add the config plugin to the plugins
array of your app.json
or app.config.js
:
{
"expo": {
"plugins": ["@matthewwarnes/react-native-ble-manager-plugin"]
}
}
Next, rebuild your app as described in the "Adding custom native code" guide.
The plugin provides props for extra customization. Every time you change the props or plugins, you'll need to rebuild (and prebuild
) the native app. If no extra properties are added, defaults will be used.
isBackgroundEnabled
(boolean): Enable background BLE support on Android. Adds <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
to the AndroidManifest.xml
. Default false
.neverForLocation
(boolean): Set to true only if you can strongly assert that your app never derives physical location from Bluetooth scan results. The location permission will be still required on older Android devices. Note, that some BLE beacons are filtered from the scan results. Android SDK 31+. Default false
. WARNING: This parameter is experimental and BLE might not work. Make sure to test before releasing to production.modes
(string[]): Adds iOS UIBackgroundModes
to the Info.plist
. Options are: peripheral
, and central
. Defaults to undefined.bluetoothAlwaysPermission
(string | false): Sets the iOS NSBluetoothAlwaysUsageDescription
permission message to the Info.plist
. Setting false
will skip adding the permission. Defaults to Allow $(PRODUCT_NAME) to connect to bluetooth devices
.bluetoothPeripheralPermission
(string | false): Sets the iOS NSBluetoothPeripheralUsageDescription
permission message to the Info.plist
. Setting false
will skip adding the permission. Defaults to Allow $(PRODUCT_NAME) to connect to bluetooth devices
.{
"expo": {
"plugins": [
[
"@matthewwarnes/react-native-ble-manager-plugin",
{
"isBackgroundEnabled": true,
"modes": ["peripheral", "central"],
"bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices",
"bluetoothPeripheralPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices"
}
]
]
}
}
FAQs
Config plugin to auto configure react-native-ble-manager on prebuild
The npm package @matthewwarnes/react-native-ble-manager-plugin receives a total of 18 weekly downloads. As such, @matthewwarnes/react-native-ble-manager-plugin popularity was classified as not popular.
We found that @matthewwarnes/react-native-ble-manager-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.