PWA
Progressive Web Apps are web apps that use emerging web browser APIs and features along with traditional progressive enhancement strategy to bring a native app-like user experience to cross-platform web applications. Progressive Web Apps are a useful design pattern, though they aren't a formalized standard. PWA can be thought of as similar to AJAX or other similar patterns that encompass a set of application attributes, including use of specific web technologies and techniques.
์กฐ๊ฑด
- responsive web degisn: ์ปจํ ์ธ ๊ฐ ๋ณด์ฌ์ฃผ๋ ๊ธฐ๊ธฐ์ ๋ฐ๋ผ ์ ๋์ ์ผ๋ก ๊ทธ๋ฆฌ๊ณ ๋ฐ์์ ์ผ๋ก ๋ณด์ฌ์ค ๊ฒ.
- service workers ๋ฅผ ์ด์ฉํ ๊ฒ
- app manifest ์ push notification ์ ์ฌ์ฉํ ์ ์์ ๊ฒ.
- ์ฌ์ฉ์๋ค์ด app ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ฒ๋ผ ๋๋ ์ ์๋๋ก, ๋ค์ํ ๋ธ๋ผ์ฐ์ api ๋ฅผ ์ด์ฉํด๊ตฌํํ ๊ฒ.
- ์ฌ์ฉ๋ค์ device ์ ์ค์น๊ฐ ๊ฐ๋ฅํ๋๋ก ๋ง๋ค ๊ฒ.
In order to call a Web App a PWA, technically speaking it should have the following features:
- Secure contexts (HTTPS): The web application must be served over a secure network. Being a secure site is not only a best practice, but it also establishes your web application as a trusted site especially if users need to make secure transactions. Most of the features related to a PWA such as geolocation and even service workers are available only once the app has been loaded using HTTPS.
- one or more Service Workers: a script that allows intercepting and control of how a web browser handles its network requests and asset caching. With service workers, web developers can create reliably fast web pages and offline experiences.
- manifest file: A JSON file that controls how your app appears to the user and ensures that progressive web apps are discoverable. It describes the name of the app, the start URL, icons, and all of the other details necessary to transform the website into an app-like format.
PWA advantages
PWAs should be discoverable, installable, linkable, network independent, progressive, re-engageable, responsive, and safe. To find out more about what these mean, read Progressive web app advantages.
example on iphone
Let's make PWA:
: https://youtu.be/FEBkne7Nyu4?t=558
- PWA Builder: ์น ์๋น์ค๊ฐ PWA ์ ์ฉ์ด ๊ฐ๋ฅํ์ง ํ ์คํธ ๋ฐ ๋ถ์กฑํ ๋ถ๋ถ์ ์๋์ผ๋ก ์ฑ์์ฃผ์ด PWA ๋ก ๋ง๋ค ์ ์๊ฒ ๋์์ฃผ๋ ์คํ์์ค
- Workbox: service worker ๋ฅผ ์๋์ผ๋ก ๋ง๋ค์ด์ฃผ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
- ngrok: ๋ก์ปฌํธ์คํธ url ์ ์ธ๋ถ์์ ์ ๊ทผ์ด ๊ฐ๋ฅํ url ๋ก ๋ง๋ค ์ ์๋ค. (http, https)
- Maskable.app: PWA ์์ด์ฝ ๋ง๋ค ์ ์๋ ํด
์ฐธ๊ณ
PWA (Progressive Web App) ๊ฐ๋ ๊ณผ ๋ฐ๋ผ๋ง๋ค๊ธฐ: https://www.youtube.com/watch?v=FEBkne7Nyu4