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