'BleManagerPeripheralDidBond is not a supported event type for BleManager' error #952
MysteryAchievement
started this conversation in
General
Replies: 1 comment
-
|
FWIW, my solution for this was to exclude the addListener for BleManagerPeripheralDidBond on iOS builds and include the code for Android builds. I'm using Bitrise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I receive the following error in the iOS simulator:
It looks like the error occurs in the addListener call as the next line on the error screen mentions:
-[RCTEventEmitter addListener:]I tried to write some code to get around the issue but it did not work:
if (Platform.OS === 'android') bleManagerEmitter.addListener('BleManagerPeripheralDidBond', handlePeripheralDidBond);While I know that the simulator does not support BLE, I would like to know if there is any way to suppress the error.
I am using:
React Native: 0.68.5
react-native-ble-manager: 8.5.0
iOS: 15.5
Beta Was this translation helpful? Give feedback.
All reactions