Notificaciones in-app
Obtener notificaciones in-app segmentadas.
Retorna notificaciones activas que coinciden con las segment rules del cliente.
Uso
final notifications = await SouthGamesSDK.getInAppNotifications(
clientId: 'client_id',
);
for (final n in notifications) {
print('${n.title} — ${n.body}');
if (n.cta != null) {
print('CTA: ${n.cta!.label} -> ${n.cta!.action}');
}
}
Modelo: InAppNotification
| Campo | Tipo | Descripcion |
|---|---|---|
id | String | ID de la notificacion |
title | String | Titulo |
body | String | Contenido |
type | String | banner, modal, toast |
position | String? | Posicion (top, bottom, center) |
cta | CtaButton? | Boton de accion |
bgColor | String? | Color de fondo |
textColor | String? | Color de texto |
CtaButton
| Campo | Tipo | Descripcion |
|---|---|---|
label | String | Texto del boton |
action | String | URL o deeplink |