๐น ์๋ฆผ
์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด ๋งํฌ๋ค์ด ๊ฐ์ด๋๊ฐ ํฌํจ๋ ์ค์ ํ๋กฌํํธ๋ฅผ ๋ณต์ฌํ์ธ์.
๐ Capacitor ์ฑ์์ Capgo ๋ค์ดํฐ๋ธ ์๋ฆผ์ ์ค์ ํ์ธ์.
โ๏ธ ์ค์
์น์ ์ ๋ชฉ โ โ๏ธ ์ค์ โnpx @capgo/cli@latest notifications setupCapgo notifications ํ๋ฌ๊ทธ์ธ์ ์ค์นํ๊ณ , Capacitor ์ค์ ์ ์ถ๊ฐํ ํ, ํฌํผ ํ์ผ์ ์์ฑํ๊ณ Capacitor sync๋ฅผ ์คํํ์ธ์. ํ๋ก๋์ ์๋ฆผ์ ๋ณด๋ด๊ธฐ ์ ์ Capgo ์ฑ์ Notifications ํญ์์ Android ๋ฐ iOS ํธ์ ์๊ฒฉ ์ฆ๋ช ์ ๊ตฌ์ฑํ์ธ์.
์์:
npx @capgo/cli@latest notifications setup com.example.app์ต์ :
| ํ๋ผ๋ฏธํฐ | ์ ํ | ์ค๋ช |
|---|---|---|
| โserver-url | string | Capgo API ์๋ฒ URL |
| โfile | string | ์์ฑํ ํฌํผ ํ์ผ (๊ธฐ๋ณธ๊ฐ: src/capgo-notifications.ts) |
| โforce | boolean | ํฌํผ ํ์ผ์ด ์ด๋ฏธ ์์ผ๋ฉด ๋ฎ์ด์๋๋ค |
| โno-install | boolean | notifications ํจํค์ง ์ค์น๋ฅผ ๊ฑด๋๋๋๋ค |
| โno-sync | boolean | Capacitor ๋๊ธฐํ๋ฅผ ๊ฑด๋๋๋๋ค |