nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

How do you send native notifications using this package?

Open jetlej opened this issue 1 year ago • 7 comments

The main reason I want to enable my app to be a PWA is native notifications, and this package doesn't seem to mention it anywhere :/

Is there any documentation on that?

jetlej avatar Oct 01 '23 19:10 jetlej

Want to know too

suchorski avatar Oct 25 '23 16:10 suchorski

@jetlej @suchorski the issue is about web push notifications?

If so, you need for example https://dev.to/wteja/how-to-make-push-notification-using-nodejs-and-service-worker-jaa (you need the push service in your backend)

You can check a sw example here (the backend is any mastodon server where the user using Elk has an account): https://github.com/elk-zone/elk/tree/main/service-worker

And here https://docs.elk.zone/pwa some docs.

userquin avatar Oct 25 '23 18:10 userquin

@userquin more like custom service workers

suchorski avatar Oct 25 '23 18:10 suchorski

Not web push notifications. Native mobile notifications on iOS and Android.

jetlej avatar Nov 02 '23 13:11 jetlej

Not web push notifications. Native mobile notifications on iOS and Android.

Some link to the specs?

userquin avatar Nov 02 '23 14:11 userquin

I guess they still are technically web push notifications, but they're for when you save a PWA to your homescreen:

https://webkit.org/blog/13878/web-push-for-web-apps-on-ios-and-ipados/ https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers

jetlej avatar Nov 03 '23 14:11 jetlej

@jetlej check elk.zone, you need to add psuh notification to your backend

userquin avatar Nov 03 '23 17:11 userquin