Commit Graph

8 Commits

Author SHA1 Message Date
caspar
e63de716cd Keep the site's download file name and offer to open saved files
All checks were successful
APK-BUILD/pipeline/head This commit looks good
WebView drops the <a download> name of page-made files, so downloads such as
the Verificar entrega Odoo CSV were saved as downloadfile.csv. The download
hook now records the name when the link is clicked and the app asks the page
for it. After saving, a dialog shows the file name and offers Abrir, which
uses the registered viewer or, for types nothing opens (CSV on the
scanners), launches the app set in AppConfig.FILE_OPEN_FALLBACK_APPS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:45:32 -04:00
caspar
d22af8f256 Show an explicit camera/gallery choice for photo uploads
Image file inputs went straight to the gallery picker when the camera was
hidden by the system chooser or its permission was missing. They now show a
Tomar foto / Elegir de la galería dialog (capture fields open the camera
directly), and a denied camera permission explains how to enable it in
Settings instead of silently falling back to the picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 14:07:04 -04:00
caspar
d1b8c34fe1 Save downloads and camera photos to the device, prompt for permissions
All checks were successful
APK-BUILD/pipeline/head This commit looks good
- Downloads (https on allowed hosts, data: and blob: URLs) are saved to the
  Downloads folder, with a toast when they finish
- Image upload fields offer the camera; photos are kept in Pictures/Joykoo
- In-page camera (getUserMedia) is granted to allowed hosts only
- Camera and storage (Android 9 and below) permissions are requested at
  first launch and again on demand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 13:51:51 -04:00
caspar
455f8498f7 Add kiosk lockdown, custom status strip, crash recovery and error screens
All checks were successful
APK-BUILD/pipeline/head This commit looks good
- Kiosk mode: scanning AppConfig.KIOSK_BARCODE toggles Android Lock Task
  mode (persisted). As device owner (KioskAdminReceiver) it is a full
  lockdown and the app becomes the persistent home screen; otherwise it
  falls back to screen pinning. "Salir" and Back-to-exit are disabled
  while kiosk mode is on.
- Status strip: app-drawn bar showing only Wi-Fi status and battery
  percentage; system bars stay hidden.
- Renderer crash: onRenderProcessGone replaces the WebView and reloads
  the last URL; repeated crashes show an error screen instead.
- Error screen: per-cause messages (no Wi-Fi with auto-retry on
  reconnect, server unreachable, 5xx, SSL) and an "Ir al inicio"
  button; 4xx pages are left to the site.
- Mixed content is never allowed.
- Admin volume-key hold reduced to 3 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:37:25 -04:00
caspar
84035e7107 Replace corner-tap admin gesture with volume-key hold and admin barcode
All checks were successful
APK-BUILD/pipeline/head This commit looks good
The 7-tap top-left corner gesture passed every tap through to the page,
triggering site UI underneath it. Remove it entirely and open the admin
dialog (exit / toggle soft keyboard) by either:

- holding Volume Up + Volume Down together for 5 seconds; volume keys
  are consumed so they never reach the page, or
- scanning AppConfig.ADMIN_BARCODE in Intent output mode, which opens
  the dialog instead of being injected into the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 13:28:45 -04:00
caspar
2f88432776 Add intent-output scanner support and key event logging
All checks were successful
APK-BUILD/pipeline/head This commit looks good
Scanners in "Intent output" mode deliver barcodes via broadcast, which
nothing in the app received, so scans never reached any field. Add
BroadcastScannerIntegration (Urovo, Newland and other common actions,
configurable in AppConfig) and inject the text into the focused field,
or the first visible search/text field, using the native value setter
plus an input event so React-controlled inputs accept it. Optionally
sends Enter afterwards (SCANNER_SEND_ENTER).

Add a logging-only dispatchKeyEvent pass-through to diagnose why
keystroke-mode scans don't reach the orders search field.

Ignore SamplePage/ and update README and CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:39:16 -04:00
caspar
b7cf7256ac Restore real InputConnection to fix barcode scanner input
Returning null from onCreateInputConnection() prevented the Chromium
renderer from relaying hardware key events into HTML inputs, breaking
scanner input on the Urovo CT58C. Return the real InputConnection from
super and rely on the multi-layer keyboard suppression (JS inputmode,
InputMethodManager, EditorInfo flags, manifest flags) which is already
proven to work on this device.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-10-08 00:37:43 -04:00
caspar
63909abf6d Initial commit. Basic app. 2026-09-28 15:41:55 -04:00