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

Envoyer des notifications push #61

Open
Nadawoo opened this issue Aug 14, 2022 · 0 comments
Open

Envoyer des notifications push #61

Nadawoo opened this issue Aug 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Nadawoo
Copy link
Owner

Nadawoo commented Aug 14, 2022

Le jeu devrait pouvoir envoyer des notifications "push" aux joueurs afin de maintenir leur attention. C'est possible dans les navigateurs, à la manière des applications mobiles (excepté qu'il faut que le navigateur soit ouvert, fût-ce en arrière-plan).

La théorie : codage from scratch (fastidieux) :
https://developer.mozilla.org/fr/docs/Web/Progressive_web_apps/Re-engageable_Notifications_Push

Mieux vaut utiliser une librairie comme Push.js :
Un tuto court : https://redstapler.co/push-js-tutorial-javascript-desktop-notification/
Guide & site officiels : https://pushjs.org/docs/quick-start

@Nadawoo Nadawoo added the enhancement New feature or request label Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant