Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spike]: Push notifications for orders placed in Venia #1126

Open
3 of 6 tasks
ericerway opened this issue Apr 8, 2019 · 18 comments
Open
3 of 6 tasks

[spike]: Push notifications for orders placed in Venia #1126

ericerway opened this issue Apr 8, 2019 · 18 comments
Labels
enhancement New feature or request help wanted Eligible for community contribution. hold On hold until another condition is fulfilled. Progress: ready for grooming

Comments

@ericerway
Copy link

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
@ericerway ericerway added the enhancement New feature or request label Apr 8, 2019
@soumya-ashok
Copy link

I am in the process of investigating how this works when the PWA or site is not added to the device's home screen both on desktop and mobile. Will update with mockups as soon as I have a better understanding.

@soumya-ashok
Copy link

soumya-ashok commented Apr 19, 2019

@awilcoxa and @ericerway - Please review the design for a simple push notification flow here - https://magento.invisionapp.com/share/A8RI9D97Y5Q

I've included mocks for both iOS and Android. @jimbo has already reviewed them.

The prompt to enable push notifications would appear after the shopper confirmed their very first purchase right as they are taken to the order confirmation page.

If they deny, then this prompt doesn't appear again per current standards. If they click Allow, then they see a Venia - style toast that confirms the action.

There are examples for how the push notification would appear when it first arrives, and then display on the lock screen.

Happy to answer any questions.

@awilcoxa awilcoxa added help wanted Eligible for community contribution. MM19UK labels Jun 5, 2019
@awilcoxa awilcoxa added this to the Storefront and Theming milestone Sep 16, 2019
@awilcoxa awilcoxa removed this from the Storefront and Theming milestone Oct 16, 2019
@awilcoxa
Copy link

Initial POC for push notifs: order status change (ex. order is shipped) creates a push notification for user with app installed and opt-in selected

@vasilii-b
Copy link

Hi @awilcoxa, @soumya-ashok ,
Could you please re-share the link for mockups? It says it reached the quota limit.
Thank you!

@soumya-ashok
Copy link

@vasilii-b We no longer use Invision as a tool and we are in the process of revisiting the design. Is this issue something you would be interested in working on immediately / in the near future?

@vasilii-b
Copy link

@soumya-ashok I'd like to work on it in the near future.

@soumya-ashok
Copy link

@vasilii-b Okay. Will discuss with the team and get back to you.

@awilcoxa
Copy link

awilcoxa commented Mar 3, 2020

Will update description of issue to reflect that this is a spike with the expected outcome being research and POC that highlights a number of different approaches to providing push notifs for an order status change.

@tjwiebell tjwiebell added the Event: Global-Contribution-Day Groomed for GCD 2020 label Apr 3, 2020
@awilcoxa awilcoxa removed the Event: Global-Contribution-Day Groomed for GCD 2020 label Apr 9, 2020
@tjwiebell tjwiebell changed the title [feature]: Push notifications for orders placed in Venia [spike]: Push notifications for orders placed in Venia Apr 14, 2020
@tjwiebell
Copy link
Contributor

@larsroettig to provide first draft of description changes to outline expected spike outcome.

@Jordaneisenburger
Copy link
Member

@larsroettig For a new customer we need to provide real-time prices so did some digging around and figured that Apollo supports something called "Subscriptions" https://www.apollographql.com/docs/react/data/subscriptions/ this looks like the functionality we are after but I'm not sure if the SW can leverage this.

@awilcoxa awilcoxa added the hold On hold until another condition is fulfilled. label May 19, 2020
@awilcoxa
Copy link

Placing on hold until we've refined the expected outcome for POC

@fooman
Copy link
Contributor

fooman commented Jun 15, 2020

@Jordaneisenburger Subscriptions would be neat to build on top of, but I believe Magento 2 as a back-end is not ready for that yet as it is missing the type:
image

@fooman
Copy link
Contributor

fooman commented Jun 15, 2020

@larsroettig sorry only commented which seems to have unassigned you and I can't undo it ?!

@larsroettig
Copy link
Member

@fooman currently we can do nothing on this topic we need to define simple use case order shipment is very hard to implement for security reasons

@sirugh
Copy link
Contributor

sirugh commented May 17, 2021

@magento export issue to JIRA project PWA as Story

@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.magento.com/browse/PWA-1749 is successfully created for this GitHub issue.

@sanganinamrata
Copy link
Member

@larsroettig Hello, May I know any update on the push notification feature? Or at least if I can know I'll get this feature on PWA's future release version, that would be great.

@ash2fast380
Copy link

Any update on this one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Eligible for community contribution. hold On hold until another condition is fulfilled. Progress: ready for grooming
Projects
None yet
Development

No branches or pull requests