Notifications
Les cartes génériques acceptent deux types de notifications:
- Notification à venir
- Notification d'expiration
Notification à venir
Notifications à venir
être présentées à l'utilisateur 24 heures avant l'intervalle de temps ;
démarre.
Une fois la notification de disponibilité à venir configurée, une notification portant le titre
"genericObject.cardTitle
est disponible" et le sous-titre Afficher la carte s'affiche.
Pour configurer les notifications de disponibilité, définissez la valeur booléenne UpcomingNotification.enabledNotification
à true
.
Notification d'expiration
Notifications d'expiration
Elles apparaissent 48 heures avant la fin de l'intervalle de temps.
Une fois la notification configurée, une notification portant le titre
"genericObject.cardTitle
expire dans [x] jours" et le sous-titre Afficher la carte sera présenté à l'utilisateur.
Pour configurer les notifications de disponibilité, définissez la valeur booléenne
ExpiryNotification.enabledNotification
à true
.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/09/05 (UTC).
[null,null,["Dernière mise à jour le 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"]]