通知
汎用パスは 2 種類の通知に対応しています。次のいずれかを構成できます。
- 今後の通知
- 期限切れの通知
今後の通知
今後の通知
期間の 24 時間前にユーザーに表示されます。
開始されます。
次回の通知を設定すると、タイトルと
「genericObject.cardTitle
はご利用いただけます」というサブタイトルと「パスを表示」というサブタイトルがユーザーに表示されます。
今後の通知を構成するには、ブール値 UpcomingNotification.enabledNotification を設定します。
宛先: true
期限切れの通知
有効期限の通知
期間が終わる 48 時間前に表示される。
通知を設定すると、次のタイトル付きの通知が
「genericObject.cardTitle
の有効期限はあと [x] 日です」と表示され、「パスを表示」というサブタイトルがユーザーに表示されます。
今後の通知を構成するには、ブール値を設定します
ExpiryNotification.enabledNotification
宛先: true
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-05 UTC。
[null,null,["最終更新日 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."]]],[]]