In-app: eventos

Trackear eventos de notificaciones in-app (shown, dismissed, cta_click).

POST/api/sdk/notifications/in-app/events

Registra un evento de interaccion con una notificacion in-app.

Request body

ParametroTipoDescripcion

Ejemplo

curl -X POST https://southgames.ai/api/sdk/notifications/in-app/events \
  -H "Authorization: Bearer sg_live_xxx" \
  -H "X-Org-Id: mi-empresa" \
  -H "Content-Type: application/json" \
  -d '{
    "notificationId": "notif_abc123",
    "event": "shown"
  }'

Respuesta

{
  "success": true,
  "data": {
    "tracked": true
  }
}

Eventos soportados

EventoDescripcion
shownLa notificacion se mostro al usuario
dismissedEl usuario cerro la notificacion
cta_clickEl usuario presiono el boton de accion

Notas

  • Este endpoint es llamado automaticamente por el Flutter SDK.
  • Incrementa shownCount, dismissedCount o ctaClickCount en el documento de la notificacion.