Description
Is your feature request related to a problem? Please describe.
Push notifications are a key experience for PWA. Beyond adding to home screen (done) Venia should address key shopping experiences (including orders) using this capability with progressive web apps. This not only demonstrates this capability for merchants but provides an important "hook" for shoppers helping them check order easily similar to how this is done with leading native applications.
Describe the solution you'd like
The shopper confirms their first order, and on the order confirmation page they are asked for permission to push notifications to them. A couple of days later, they return to the Venia browser tab and as they are browsing they receive an in-app toast that their order has shipped, and they will be able to click on the order number link in the toast text to view shipping details. The toast will persist until dismissed. Additional context and UX from @soumya-ashok will be provided.
Describe alternatives you've considered
They have Venia installed on their home screen and are able to receive a device notification about their order status as a stretch goal for this story.
Additional context
If the shopper doesn’t have Venia installed, they would not be able to receive device notifications from Venia. Authentication considerations and other scenarios to be considered.
Please let us know what packages this feature is in regards to:
-
venia-concept
-
pwa-buildpack
-
peregrine
-
pwa-devdocs
-
upward-js
-
upward-spec