Notificaciones
Los pases genéricos admiten dos tipos de notificaciones. Puedes configurar lo siguiente:
- Próxima notificación
- Notificación de vencimiento
Próxima notificación
El usuario puede ver las próximas notificaciones 24 horas antes de que comience el intervalo de tiempo.
Cuando se configure la próxima notificación, se le mostrará al usuario una notificación con el título “genericObject.cardTitle
ya está disponible” y el subtítulo “Ver pase”.
Para configurar las próximas notificaciones, establece el valor booleano UpcomingNotification.enabledNotification en true
.
Notificación de vencimiento
Las notificaciones de vencimiento aparecen 48 horas antes de que finalice el intervalo de tiempo.
Cuando se configure la notificación, se le mostrará al usuario una notificación con el título “genericObject.cardTitle
vence en [x] días” y el subtítulo “Ver pase”.
Para configurar las próximas notificaciones, establece el valor booleano ExpiryNotification.enabledNotification en true
.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-09-05 (UTC)
[null,null,["Última actualización: 2024-09-05 (UTC)"],[[["Generic passes offer two notification types: upcoming and expiry, allowing users to receive timely alerts."],["Upcoming notifications, triggered 24 hours before a specified time interval, inform users that their generic object is available."],["Expiry notifications, appearing 48 hours prior to the end of a time interval, remind users of the impending expiration of their generic object."],["Both notification types can be easily enabled by setting the respective boolean value (`enabledNotification`) to `true` in the pass configuration."]]],["Generic Passes offer upcoming and expiry notifications. Upcoming notifications, appearing 24 hours before the start time, display the pass's card title and \"View pass\" as the subtitle, enabled by setting `UpcomingNotification.enabledNotification` to `true`. Expiry notifications, appearing 48 hours before the end time, show the card title and an \"expires in [x] days\" message with a \"View pass\" subtitle, enabled by setting `ExpiryNotification.enabledNotification` to `true`.\n"]]