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

CampoTipoDescripcion
idStringID de la notificacion
titleStringTitulo
bodyStringContenido
typeStringbanner, modal, toast
positionString?Posicion (top, bottom, center)
ctaCtaButton?Boton de accion
bgColorString?Color de fondo
textColorString?Color de texto

CtaButton

CampoTipoDescripcion
labelStringTexto del boton
actionStringURL o deeplink