הודעות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כרטיסים כלליים תומכים בשני סוגים של התראות, ואפשר להגדיר אותן:
- התראה קרובה
- התראה על תפוגת תוקף
התראה קרובה
ההתראות הבאות מופיעות למשתמש 24 שעות לפני תחילת מרווח הזמן.
כשההתראה הקרובה מוגדרת, תוצג למשתמש התראה עם השם 'genericObject.cardTitle
זמין עכשיו' והכותרת 'הצגת הכרטיס'.
כדי להגדיר התראות עתידיות, צריך להגדיר את הערך הבוליאני UpcomingNotification.enabledNotification לערך true
.
התראה על תפוגת תוקף
התראות על תפוגה מופיעות 48 שעות לפני סוף מרווח הזמן.
כשההתראה מוגדרת, תוצג למשתמש התראה עם השם 'genericObject.cardTitle
יפוג בעוד [x] ימים' והכותרת 'צפייה בכרטיס'.
כדי להגדיר התראות עתידיות, צריך להגדיר את הערך הבוליאני ExpiryNotification.enabledNotification
כ-true
.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-09-04 (שעון UTC).
[null,null,["עדכון אחרון: 2025-09-04 (שעון UTC)."],[[["\u003cp\u003eGeneric passes offer two notification types: upcoming and expiry, allowing users to receive timely alerts.\u003c/p\u003e\n"],["\u003cp\u003eUpcoming notifications, triggered 24 hours before a specified time interval, inform users that their generic object is available.\u003c/p\u003e\n"],["\u003cp\u003eExpiry notifications, appearing 48 hours prior to the end of a time interval, remind users of the impending expiration of their generic object.\u003c/p\u003e\n"],["\u003cp\u003eBoth notification types can be easily enabled by setting the respective boolean value (\u003ccode\u003eenabledNotification\u003c/code\u003e) to \u003ccode\u003etrue\u003c/code\u003e in the pass configuration.\u003c/p\u003e\n"]]],["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"],null,["# Notifications\n\nGeneric Passes support two types of notifications, you can configure either:\n\n1. Upcoming notification\n2. Expiry notification\n\nUpcoming notification\n---------------------\n\n[Upcoming notifications](/wallet/generic/rest/v1/genericobject#upcomingnotification)\nappear to the user 24 hours before the [time interval](/wallet/generic/rest/v1/TimeInterval)\nstarts.\n\nWhen the upcoming notification is configured, a notification with the title\n**\"`genericObject.cardTitle` is available now\"** and subtitle **\"View pass\"** will appear to the user.\n\nTo configure upcoming notifications, set the boolean value [UpcomingNotification.enabledNotification](/wallet/generic/rest/v1/genericobject#upcomingnotification)\nto `true`.\n\nExpiry notification\n-------------------\n\n[Expiry notifications](/wallet/generic/rest/v1/genericobject#expirynotification)\nappear 48 hours before the end of the [time interval](/wallet/generic/rest/v1/TimeInterval).\n\nWhen the notification is configured, a notification with the title\n**\"`genericObject.cardTitle` expires in \\[x\\] days\"** and subtitle **\"View pass\"** will appear to the user.\n\nTo configure upcoming notifications, set the boolean value\n[ExpiryNotification.enabledNotification](/wallet/generic/rest/v1/genericobject#expirynotification)\nto `true`."]]