You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Getting in so many libraries, But sending any one
@expo/[email protected]
node_modules/@expo/metro-config
@expo/metro-config@"^0.19.4" from the root project
@expo/metro-config@"~0.19.0" from @expo/[email protected]
node_modules/@expo/cli
@expo/cli@"0.21.5" from [email protected]
node_modules/expo
expo@"^52.0.7" from the root project
@expo/metro-config@"0.19.4" from [email protected]
node_modules/expo
expo@"^52.0.7" from the root project
@expo/[email protected]
node_modules/react-native-ble-plx/node_modules/@expo/metro-config
@expo/metro-config@"0.18.11" from @expo/[email protected]
node_modules/react-native-ble-plx/node_modules/@expo/cli
@expo/cli@"0.18.31" from [email protected]
node_modules/react-native-ble-plx/node_modules/expo
expo@"^51.0.14" from [email protected]
node_modules/react-native-ble-plx
react-native-ble-plx@"^3.2.1" from the root project
@expo/metro-config@"0.18.11" from [email protected]
node_modules/react-native-ble-plx/node_modules/expo
expo@"^51.0.14" from [email protected]
node_modules/react-native-ble-plx
react-native-ble-plx@"^3.2.1" from the root project
// Start ScanningconstbleManager=newBleManager();// Bluetooth PermissionconstrequestBluetoothPermissions=async(): Promise<boolean>=>{if(Platform.OS=== 'android'){// const granted = await PermissionsAndroid.request(// PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION// );// return granted === PermissionsAndroid.RESULTS.GRANTED;try{constpermissions=[PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,PermissionsAndroid.PERMISSIONS.BLUETOOTH_SCAN,PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,];constgranted=awaitPermissionsAndroid.requestMultiple(permissions);if(granted['android.permission.ACCESS_FINE_LOCATION']===PermissionsAndroid.RESULTS.GRANTED&&granted['android.permission.BLUETOOTH_SCAN']===PermissionsAndroid.RESULTS.GRANTED&&granted['android.permission.BLUETOOTH_CONNECT']===PermissionsAndroid.RESULTS.GRANTED){returntrue;}else{Alert.alert('Permissions Denied','Bluetooth permissions are required to connect to devices.');returnfalse;}}catch(error){Alert.alert('Error','Failed to request permissions');returnfalse;}}returntrue;}// Handle Scan PrintersconsthandleScanPrinters=async()=>{constpermissionsGranted=awaitrequestBluetoothPermissions();if(!permissionsGranted)return;// Set FlagsetScanning(true);handleHapticFeedback();try{bleManager.startDeviceScan(null,null,(error: BleError|null,device: Device|null)=>{if(error&&error?.reason){Alert.alert(`${error?.errorCode}`,`${error.reason}`);setScanning(false);return;}// Only proceed if device has both id and nameif(device&&device.name&&device.id){setPrinters((prevList)=>{constdeviceExists=prevList.some((d)=>d.id===device.id);if(!deviceExists){return[...prevList,{id: device.id,name: device.name}];}returnprevList;});}});setTimeout(()=>{bleManager.stopDeviceScan();setScanning(false);},15000);}catch(error: any){Alert.alert('Error!',`${error.message}`);setScanning(false);}finally{// bleManager.destroy();// setScanning(false);}}// Handle PrinterconsthandlePrinter=async(id: string)=>{setPrinterId(id);handleHapticFeedback();return;}
Relevant log output
Getting issues in below libraries just because of BLE library
The package "expo-modules-autolinking" should not be installed directly in your project. It is a dependency of other Expo packages, which will install it automatically as needed.
Expected package expo-modules-autolinking@~2.0.0
Found invalid:
[email protected]
(for more info, run: npm why expo-modules-autolinking)
Expected package @expo/config-plugins@~9.0.0
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/config-plugins)
Expected package @expo/prebuild-config@~8.0.0
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/prebuild-config)
Expected package @expo/metro-config@~0.19.0
Found invalid:
@expo/[email protected]
(for more info, run: npm why @expo/metro-config)
Additional information
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Expected Behavior
Getting in so many libraries, But sending any one
@expo/[email protected]
node_modules/@expo/metro-config
@expo/metro-config@"^0.19.4" from the root project
@expo/metro-config@"~0.19.0" from @expo/[email protected]
node_modules/@expo/cli
@expo/cli@"0.21.5" from [email protected]
node_modules/expo
expo@"^52.0.7" from the root project
@expo/metro-config@"0.19.4" from [email protected]
node_modules/expo
expo@"^52.0.7" from the root project
@expo/[email protected]
node_modules/react-native-ble-plx/node_modules/@expo/metro-config
@expo/metro-config@"0.18.11" from @expo/[email protected]
node_modules/react-native-ble-plx/node_modules/@expo/cli
@expo/cli@"0.18.31" from [email protected]
node_modules/react-native-ble-plx/node_modules/expo
expo@"^51.0.14" from [email protected]
node_modules/react-native-ble-plx
react-native-ble-plx@"^3.2.1" from the root project
@expo/metro-config@"0.18.11" from [email protected]
node_modules/react-native-ble-plx/node_modules/expo
expo@"^51.0.14" from [email protected]
node_modules/react-native-ble-plx
react-native-ble-plx@"^3.2.1" from the root project
Current Behavior
BLE Library Working but getting warnings and all
Library version
3.2.1
Device
iPhone 15 Pro, Android 8.0
Environment info
Steps to reproduce
Formatted code sample or link to a repository
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: