Notifications
Generic Passes support two types of notifications, you can configure either:
- Upcoming notification
- Expiry notification
Upcoming notification
Upcoming notifications
appear to the user 24 hours before the time interval
starts.
When the upcoming notification is configured, a notification with the title
“genericObject.cardTitle
is available now” and subtitle “View pass” will appear to the user.
To configure upcoming notifications, set the boolean value UpcomingNotification.enabledNotification
to true
.
Expiry notification
Expiry notifications
appear 48 hours before the end of the time interval.
When the notification is configured, a notification with the title
“genericObject.cardTitle
expires in [x] days” and subtitle “View pass” will appear to the user.
To configure upcoming notifications, set the boolean value
ExpiryNotification.enabledNotification
to true
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-07 UTC.
[null,null,["Last updated 2025-02-07 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."]]],[]]