DuCanhGH / next-pwa

PWA for Next.js, powered by Workbox.
https://ducanh-next-pwa.vercel.app
MIT License
608 stars 24 forks source link

recommendations for push notifications #17

Closed laurencefass closed 1 year ago

laurencefass commented 1 year ago

Hi what is the best way to integrate push notifications into my PWA Next app?

Does this package provide it or do I need to add a different package to make that work?

If so, do you have any recommendations?

DuCanhGH commented 1 year ago

Here is an example, though it was from the original repo and I haven't touched it much aside from converting the code to TS. But it should work nicely as an example, yeah. There's also this resource.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

johanneskares commented 9 months ago

I just deployed the example to Vercel and insane to see that it works on iOS now and sends a push notification.

StephenMarkToms commented 9 months ago

I couldn't agree more, just got back from doing a hackathon competition and we won because of PWA and push notifications. Another helpful article if anyone comes across it is this for a bare bones example of how to send from servers. https://devtails.xyz/@adam/how-to-setup-web-push-notifications-in-ios-safari

MrlolDev commented 6 months ago

I just deployed the example to Vercel and insane to see that it works on iOS now and sends a push notification.

Could you show how u made it?