Originally these notes were taken from firts course on frontendmasters, which covers everything in here and some more. Beyond the material of this course I have added an alipinejs + tailwindcss html div that I recently used to implement an install button.
- If a pwa does not work always check the f12 + application tab (contains sort of a checklist)
- HTTPS server is needed - Github pages would work, localhost would also work
- https://maskable.app/editor - to make icons
- https://favicon.io/ - for favicons
- https://www.pwabuilder.com - to export the application for all platforms
- https://store.app - a web store of web apps, pwas included
"screenshots": [
{
"src":"The src to your screenshot",
"sizes":"The size of your screenshot, such as 2880x1800",
"type":"The type of your image, such as image/png",
"description":"The type of your image, such as image/png"
}
]
<body oncontextmenu="return false">
- to make sure that the context menu does not pop up when a user hold clicks a link
*{
user-select: none;
-webkit-user-select: none;
}
<!-- or use select-none on tailwindcss-->
- to make sure that the context menu does not pop up when a user selects a text
- If github pages:
- Maker a _config.yaml
include: [".well-known"]
- Create .well-known folder and place assetlinks.json