Skip to content

Commit

Permalink
Got rid of the ability for iOS users to use the scanner due to weird …
Browse files Browse the repository at this point in the history
…permission behavior.
  • Loading branch information
louisg1337 committed Mar 6, 2024
1 parent 1b772e2 commit 1b3e946
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions www/js/control/BluetoothScanSettingRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@ const BluetoothScanSettingRow = ({}) => {
// Depending on user platform, handle requesting the permissions differently
if (!config.ios_use_remote_push) {
// Check and prompt for bluetooth scan permission
logDebug('[BLUETOOTH] ANDROID');
try {
let response = await window['cordova'].plugins.BEMDataCollection.bluetoothScanPermissions();
if (response == 'OK') setBluePageVisible(true);
} catch (e) {
displayError(e, 'Insufficient Permissions');
}
} else {
logDebug('[BLUETOOTH] IOS');
let response = await window['bluetoothClassicSerial'].initializeBluetooth();
logDebug(response);
setBluePageVisible(true);
displayErrorMsg("Sorry, iOS is not supported for this feature!", "iOS Not Supported");
}
}

Expand Down

0 comments on commit 1b3e946

Please sign in to comment.