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

How do you send native notifications using this package? #71

Open
jetlej opened this issue Oct 1, 2023 · 7 comments
Open

How do you send native notifications using this package? #71

jetlej opened this issue Oct 1, 2023 · 7 comments

Comments

@jetlej
Copy link

jetlej commented Oct 1, 2023

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?

@suchorski
Copy link

Want to know too

@userquin
Copy link
Member

userquin commented Oct 25, 2023

@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.

@suchorski
Copy link

@userquin more like custom service workers

@jetlej
Copy link
Author

jetlej commented Nov 2, 2023

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

@userquin
Copy link
Member

userquin commented Nov 2, 2023

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

Some link to the specs?

@jetlej
Copy link
Author

jetlej commented Nov 3, 2023

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

@userquin
Copy link
Member

userquin commented Nov 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants