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

Rendre l'ADB installable #96

Open
koryonik opened this issue Jan 21, 2022 · 0 comments
Open

Rendre l'ADB installable #96

koryonik opened this issue Jan 21, 2022 · 0 comments

Comments

@koryonik
Copy link
Contributor

koryonik commented Jan 21, 2022

Bonjour Boris et les boiseux,

Je trouve dommage que la webapp ne soit pas installable sur le desktop (Mac / Windows / Android) comme une application native.
La webapp dispose déjà de son Manifest et de son ServiceWorker, il y a donc déjà tout ce qu'il faut pour le faire.

Je propose ces petites modifications qui devrait permettre d'activer cette feature :

Modifier le scope du SW

Modifier le SW

navigator.serviceWorker.register(this.options.swPath)

Modification : navigator.serviceWorker.register(this.options.swPath, { scope: '/' })

Autoriser le scope sur un path supérieur à l'emplacement du script SW

Ajouter le header HTTP Service-Worker-Allowed: / pour ce script au niveau du serveur

Voir : https://w3c.github.io/ServiceWorker/#service-worker-allowed

Configurer le manifest (optionnel)

"display": "minimal-ui",

Modification : "display": "standalone".

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

1 participant