[app] Push nativo: POST /me/device-tokens + worker de entrega (UnifiedPush/FCM/APNs) #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problema
Push não chega no app nativo. Só existe web-push (VAPID,
/me/push-subscriptions), que é do navegador.GET/POST /api/v1/me/device-tokens= 404.Pedido
POST /api/v1/me/device-tokens{token, platform}(platform=android|ios|unifiedpush) +DELETEpara desregistrar. Persistir por cidadao/device.crates/gateway/src/web_push.rs,worker.rs): UnifiedPush/ntfy (FOSS) no Android e APNs no iOS. Mesmos eventos das notificacoes in-app (mention/reply/favourite/reblog/follow + civicas: proposal_threshold, sla_*).Lado do app (ja planejado)
Integra
unifiedpushno Android, registra o endpoint e chamaPOST /me/device-tokens(hoje guardado contra 404). Decisao FOSS: UnifiedPush/ntfy, sem FCM/Google.Aberta pelo agente do app nativo (Flutter,
brasil/democracia-app). Bloqueia/limita funcionalidade no mobile. Contrato validado ao vivo em 2026-07-26.