react-native-ble-plx: 🐛ManufacturerData on iOS returning null, in Android is correctly setted
Prerequisites
- I checked the documentation and FAQ without finding a solution
- I checked to make sure that this issue has not already been filed
Expected Behavior
I need to reed the manufacturerData of my device, on Android I can read it normally, on iOS manufacturerData return null.
Current Behavior
I need to reed the manufacturerData of my device, on Android I can read it normally, on iOS manufacturerData return null.
Library version
3.2.1
Device
iPhone 15
Environment info
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1 Pro
Memory: 150.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.7.3
path: /opt/homebrew/bin/node
Yarn: Not Found
npm:
version: 10.5.0
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.04.15.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11567975
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 19.0.1
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Steps to reproduce
Only installing library and add the Multiplatform adapter, then after setting all the permission and add this code line.
Formatted code sample or link to a repository
bleManager.startDeviceScan(null, null, (error, device) => {
if (error) {
console.error('Error scanning for devices:', error);
return;
}
console.log(device.manufacturerData)
Relevant log output
{ manufacturerData: null,
isConnectable: false,
serviceUUIDs: null,
overflowServiceUUIDs: null,
txPowerLevel: null,
solicitedServiceUUIDs: null,
}
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 22
Didn’t change. Manufacturer Data is null.
@GioIacca9 I couldn’t find the Manufacturer Data in your snapshot. In iOS,there are two frameworks used for communicating with Bluetooth devices: CoreBluetooth and CoreLocation. CoreLocation is used to detect nearby beacon devices, so it can discover Bluetooth devices, but it cannot retrieve Manufacturer Data from them. The CLBeacon class only provides uuid, major, minor, proximity, accuracy, and rssi attributes. You can find more details here:https://developer.apple.com/documentation/corelocation/clbeacon.
On the other hand, CoreBluetooth allows you to directly process Bluetooth data packets, including Manufacturer Data.
Isn’t it the same problem as here: #1149 ? @Mattefarax What version of MultiPlatformBleAdapter you have?