shivao-projeto/server/public
PontualTech / Karlão ca66a6995f
Some checks are pending
Build Android (APK + AAB) / build-android (push) Waiting to run
fix(boot): try/catch defensivo + migration btDevices + alert crash v1.10.16
Karlão reportou: APK v1.10.15 crasha no boot mesmo após desinstalar
e reinstalar. Significa bug no código, não state corrompido.

Fix preventivo:
- Boot IIFE wrapped em try/catch master
- Cada init (loadState, tracking, anchor, battery, sw, sensors, rt,
  gcal) agora em try individual — falha de um não derruba o resto
- Migration defensiva de state.btDevices: filtra entries inválidas
  (null, sem id, etc)
- Se loadState crashar (state corrupto), reseta localStorage
- Crash master no try-catch chama alert() nativo + localStorage.clear()
  pra recovery automático na próxima abertura

Quando Karlão atualizar pra v1.10.16, vai aparecer mensagem específica
do erro (se ainda houver) — daí descubro causa exata em vez de
adivinhar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 10:39:02 -03:00
..
icon.svg feat(pwa): manifest.json + ícone SVG marítimo pra instalar como app 2026-04-27 14:35:01 -03:00
index.html fix(boot): try/catch defensivo + migration btDevices + alert crash v1.10.16 2026-04-29 10:39:02 -03:00
sw.js fix(boot): try/catch defensivo + migration btDevices + alert crash v1.10.16 2026-04-29 10:39:02 -03:00