aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.4k stars 2.11k forks source link

React PWA receive Push Notifications over Service Workers #4943

Open patrickwerz opened 4 years ago

patrickwerz commented 4 years ago

Hello, I am thinking to realize a project with a react (CRA) PWA. One important use case is to receive push notifications via service workers. Is this possible in general with aws amplify js toolset?
If yes, is there a documentation how to send messages from a aws service (not sure which one this could be) to a device? Thanks in advance, Patrick

sammartinez commented 4 years ago

@danketrotzdem Currently, PWAs are not supported within Amplify JS. I am marking this as a feature request. Thanks for bringing this up!

patrickwerz commented 4 years ago

Hi, some aspects are possible, right? Like offline support and a "app like" installation on mobile devices. https://aws.amazon.com/blogs/mobile/building-progressive-web-apps-with-the-amplify-framework-and-aws-appsync/

peetss commented 4 years ago

I have a use case for this as well.

Are there viable workarounds, how can we help contribute this feature?

spina-a-d commented 4 years ago

Also have a use-case. Following.

montera82 commented 3 years ago

Not supported?? What of this article https://docs.amplify.aws/lib/utilities/serviceworker/q/platform/js

spina-a-d commented 3 years ago

Not supported?? What of this article https://docs.amplify.aws/lib/utilities/serviceworker/q/platform/js

That looks interesting I'll be looking into that. But do realise that the Amplify docs have been significantly expanded recently. When this thread was made they probably didn't include that.