-
-
-
-
-
- {{ t("scanner.hint") }}
-
-
-
-
-
+
diff --git a/src/composables/useQRScanner.ts b/src/composables/useQRScanner.ts
index f7f7c3c..6ba3182 100644
--- a/src/composables/useQRScanner.ts
+++ b/src/composables/useQRScanner.ts
@@ -1,5 +1,4 @@
-import { CapacitorBarcodeScanner } from "@capacitor/barcode-scanner";
-import { Capacitor } from "@capacitor/core";
+import { CapacitorBarcodeScanner, CapacitorBarcodeScannerCameraDirection, CapacitorBarcodeScannerTypeHint } from "@capacitor/barcode-scanner";
import { toastController } from "@ionic/vue";
export interface QRScanResult {
@@ -16,56 +15,41 @@ export interface ScannerOptions {
export function useQRScanner() {
const { t } = useI18n();
const { vibrate } = useHaptics();
- const isSupported = Capacitor.isNativePlatform();
- async function showError(message: string) {
- const toast = await toastController.create({
- message,
- duration: 2000,
- position: "bottom",
- color: "danger",
- });
- await toast.present();
- };
-
- async function open(options?: ScannerOptions): Promise