I want to display a message at a specified time (regardless of location or beacons). #237
-
Hello, I apologize for the beginner-level question, but I don’t know how to do this, so I would appreciate your guidance. Could you please tell me how to display a message at a specified time for users who have stored an Apple Wallet pass, regardless of their location?
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Hey @kohdoh-her0, thanks for using passkit-generator! Relevancy, that's the term used for what you are asking, depends on one of the following things:
In passkit-generator, if you want to set the relevancy time, you can use the methods Please note that there is no certainty on when you device will choose to display the notification. It might be hours before as well as minutes before as well as some time after. It also might depend on the pass type you decide to use. For example, I had a boardingPass for a train I had to take 4 days ago. However, the
But the notification appeared me in the evening, several hours before, instead of 19:45. I suggest you do to some testing, because things might not be as you expect. About relevancy, there is not a good specific documentation out there. You can find more details here: https://developer.apple.com/documentation/walletpasses/showing-a-pass-on-the-lock-screen Let me know if I can help you any further. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your prompt advice. Through various trials, I have discovered something. I have set the pass type to “storeCard”:
Because of this, messages are only displayed when triggered by a location, and the relevantDate setting does not seem to take effect. This was also mentioned in Table 4-2 on this page: Due to the design requirements of my pass, I would like to use storeCard, which is quite a dilemma for me. I will try to think of a possible solution. |
Beta Was this translation helpful? Give feedback.
-
It is a membership card for a group of musicians. |
Beta Was this translation helpful? Give feedback.
-
It is a professional musicians’ organization. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your detailed advice. I now realize that my plan deviates from the intended use of Apple Wallet. Currently, we send regular emails to musicians, but I was considering using passes as a faster communication method. |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing such a wonderful idea! In Japan, where I live, we say “soo-bah-rah-shee” for “wonderful.” This idea is the most practical.
When the value of message changes, a notification is displayed. This solved the issue. |
Beta Was this translation helpful? Give feedback.
-
I appreciate you for writing and maintaining such wonderful(eh-goo-ee!) code. |
Beta Was this translation helpful? Give feedback.
Thank you for sharing such a wonderful idea!
In Japan, where I live, we say “soo-bah-rah-shee” for “wonderful.”
Young people often say “eh-goo-ee!” instead.
This idea is the most practical.
When the value of message changes, a notification is displayed.
This solved the issue.
I really appreciate it.