shivao-projeto/server/src
PontualTech / Karlão 70b123735e
Some checks are pending
Build Android (APK + AAB) / build-android (push) Waiting to run
fix(ble): remove wake-up do path Capacitor (crashava plugin) v1.10.17
Karlão reportou que toda vez que tenta parear no APK, o app fecha
sem alert popup = crash nativo do plugin BLE Java.

Hipótese: as chamadas extras que adicionei (ble.read no notify char +
ble.write/writeWithoutResponse com 0x5A x4 wake bytes) crashavam o
plugin v6 em algum estado inválido.

Fix: remover wake-up sequence do path Capacitor. Mínimo viável:
1. ble.connect
2. ble.getServices
3. ble.startNotifications
4. delay 800ms
5. write JBD-0x03 com wnr forçado

A descoberta no PC (Web Bluetooth) confirmou que JBD-0x03 direto
(sem wake) já é suficiente — BMS responde com 41 bytes em 3 chunks.

startNotifications agora também envolto em try/catch que retorna
false se falhar (em vez de propagar exception nativa).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 14:44:16 -03:00
..
schemas feat(billing): integração Asaas — checkout PIX/Cartão/Boleto + webhook + UI upgrade 2026-04-27 15:55:08 -03:00
auth.js feat(saas): multi-tenant com login/cadastro + JWT + planos free/pro/captain 2026-04-27 15:37:15 -03:00
billing.js feat(billing): integração Asaas — checkout PIX/Cartão/Boleto + webhook + UI upgrade 2026-04-27 15:55:08 -03:00
db.js feat(gcal): integração Google Agenda bidirecional (graceful-disabled se sem env) 2026-04-28 06:56:56 -03:00
google-calendar.js feat(gcal): integração Google Agenda bidirecional (graceful-disabled se sem env) 2026-04-28 06:56:56 -03:00
index.js fix(ble): remove wake-up do path Capacitor (crashava plugin) v1.10.17 2026-04-29 14:44:16 -03:00
notifications.js chore: initial commit + security hardening (4 runs squad shivao-melhoria) 2026-04-27 13:24:08 -03:00
realtime.js feat(sync): WebSocket realtime + auto-push/pull entre PC e celular v1.5.0 2026-04-28 06:51:35 -03:00