The previous file-input-only approach fixed the crash but opened the gallery on native because capture="environment" is only a hint the OS can ignore. New platform-aware flow (lib/quickCapture.ts): - Native (APK): open the OS camera directly via the runtime-injected window.Capacitor.Plugins.Camera with source:'CAMERA' — forces the real camera and gives built-in preview/retake. Accessed off the runtime object, so no '@capacitor/camera' specifier in the bundle (keeps the white-screen fix intact). User cancel is treated as a no-op. - Web: falls back to the file input with capture="environment". - If the native camera errors, gracefully falls back to the file input. MapPage Quick Snap now routes through handleQuickSnap() → the captured photo feeds the existing upload → create-spot flow unchanged. Bump 1.0.69. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| i18n | ||
| lib | ||
| pages | ||
| test | ||
| App.test.tsx | ||
| App.tsx | ||
| AppRouter.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||