[RN ์—๋Ÿฌ๋…ธํŠธ๐Ÿ”ฅ] FCM firebase console์—์„œ ํ‘ธ์‹œ์•Œ๋ฆผ์„ ๋ณด๋‚ด๋ฉด, ์•ฑ์œผ๋กœ ์˜ค์ง€ ์•Š๋Š”๋‹ค?

๋„๋””ยท2021๋…„ 1์›” 28์ผ
1

RN ์—๋Ÿฌ๋…ธํŠธ ๐Ÿ”ฅ

๋ชฉ๋ก ๋ณด๊ธฐ
17/25

์ž์ž.
์ œ๊ฐ€ ๋ง์ž…๋‹ˆ๋‹ค. firebase cloud messaging์„ ๊ตฌํ˜„ํ•˜๋ฉด์„œ ๊ฒช์€ ์—„์ฒญ๋‚œ ์‚ฝ์งˆ๊ธฐ๋ฅผ ๊ณต์œ ๋“œ๋ฆฌ๋ ค๊ณ  ํ•ด์š”. ์ € ๊ฐ™์€ ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์ง€ ์•Š์•„์„œ, ๊ฐ™์€ ์ƒํ™ฉ์„ ๊ฒช์„ ๋ถ„์€ ๋งŽ์ด ์—†์œผ๋ฆฌ๋ผ ์ƒ๊ฐ๋˜๋Š”๋ฐ..
์ € ๊ฐ™์€ ์ƒํ™ฉ์˜ ์†Œ์ˆ˜๋ฅผ ์œ„ํ•ด ์‚ฝ์งˆ๊ธฐ๋ฅผ ๋‚จ๊น๋‹ˆ๋‹ค.

์ƒํ™ฉ, ๋ฌธ์ œ, ๊ณค๊ฒฝ์— ๋น ์ง€๊ฒŒ ๋œ ํ™˜๊ฒฝ

fcm์„ ios ์„ธํŒ… ํ›„ ํ…Œ์ŠคํŠธ๋ฅผ ํ•˜๊ธฐ ์œ„ํ•ด
firebase cloud messaging๋กœ ํ…Œ์ŠคํŠธ ํ‘ธ์‹œ์•Œ๋ฆผ์„ ๋ณด๋‚ด๊ฒŒ ๋˜์—ˆ๋‹ค.

์•ฑ์—์„œ getToken์œผ๋กœ ํ† ํฐ์„ ์š”์ฒญํ•˜๊ณ  ๊ทธ ํ† ํฐ ๊ฐ’์œผ๋กœ ํ…Œ์ŠคํŠธ ๋ฉ”์‹œ์ง€๋ฅผ ์ „์†กํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ,
๊ทธ๋Ÿฐ์‹์œผ๋กœ ํ…Œ์ŠคํŠธ ๋ฉ”์‹œ์ง€๋ฅผ ์ „์†กํ•˜๋ฉด ํ‘ธ์‹œ์•Œ๋ฆผ์ด ์ž˜ ์˜จ๋‹ค.

๊ทผ๋ฐ, ํƒ€๊ฒŸ์„ ๋‚˜์˜ ios์•ฑ์œผ๋กœ ๋‘๊ณ  ์•Œ๋ฆผ์„ ๊ฒ€ํ† (์ œ์ถœ)ํ•˜๋ฉด ํ‘ธ์‹œ์•Œ๋ฆผ์ด ์˜ค์ง€ ์•Š๋Š”๋‹ค.

์ •๋ฆฌํ•˜๋ฉด,

(ํŒฉํŠธ) ํ† ํฐ์œผ๋กœ ํ…Œ์ŠคํŠธ ํ•  ๋•Œ ์ž˜ ์™”์œผ๋‹ˆ xcode์™€ ์ธ์ฆ์„œ์—์„œ ํ‘ธ์‹œ์•Œ๋ฆผ ๊ด€๋ จ ์„ค์ •ํ•ด์•ผ๋˜๋Š” ๊ฒƒ๋“ค์€ ์ž˜ ์„ธํŒ…์ด ๋˜์—ˆ๋‹ค๋Š” ๊ฒƒ
(์ถ”์ธก) ๊ทผ๋ฐ ํ•ด๋‹น ๋ฒˆ๋“ค๋กœ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ์˜ค์ง€ ์•Š๊ณ ์žˆ๋Š” ๊ฒƒ์€ ํ•ด๋‹น ๋ฒˆ๋“ค์ด firebase์™€ ์•ฑ์ด ์—ฐ๊ฒฐ์ด ์ž˜ ์•ˆ๋˜์—ˆ์„ ๊ฒƒ
(ํŒฉํŠธ) ํ•˜์ง€๋งŒ APN ์ธ์ฆํ‚ค๋ฅผ ํ™•์‹คํžˆ ์™„๋ฒฝํžˆ appstore console์—์„œ ์ƒ์„ฑํ•˜๊ณ , firebase ์„ค์ •์—์„œ ์—ฐ๊ฒฐ์„ ํ–ˆ๋‹ค.

...ํ˜น์‹œ..?

๋ฌธ์ œ์˜ ์›์ธ์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค.
์šฐ๋ฆฌ ํšŒ์‚ฌ๋Š” ์•ฑ์„ dev์•ฑ๊ณผ prod์•ฑ์œผ๋กœ ๋‚˜๋ˆ„์–ด์„œ ๊ด€๋ฆฌํ•˜๊ณ  ์žˆ๋‹ค.
dev์•ฑ์€ ํšŒ์‚ฌ๋‚ด๋ถ€ ํ…Œ์ŠคํŠธ์šฉ์œผ๋กœ ์‚ฌ์šฉํ•จ์œผ๋กœ ์•ฑ์Šคํ† ์–ด์— ๋ฐฐํฌํ•  ์ผ์ด ์—†์–ด์„œ, app store connect > my apps ์—๋Š” prod์•ฑ๋งŒ ๋งŒ๋“ค์–ด ๋†“์€ ์ƒํ™ฉ.
ํ˜น์‹œ ํ‘ธ์‹œ์•Œ๋ฆผ์ด ์Šคํ† ์–ด์— ๋ฐฐํฌ๋œ prod์•ฑ์—์„œ๋งŒ ์ž‘๋™ํ•˜๋Š”๊ฑด๊ฐ€, dev์•ฑ์ด๊ธฐ ๋•Œ๋ฌธ์— ์•ˆ๋˜๋Š” ๊ฑด๊ฐ€? ์‹ถ์–ด์„œ
prod์•ฑ์— FCM์„ ์„ธํŒ…ํ•˜๊ณ  ํ…Œ์ŠคํŠธ ํ•ด๋ณธ ๊ฒฐ๊ณผ
prod์•ฑ ๋ฒˆ๋“ค๋กœ ํ‘ธ์‹œ์•Œ๋ฆผ์„ ๋ณด๋‚ด๋ฉด > dev์•ฑ์œผ๋กœ ํ‘ธ์‹œ ์•Œ๋ฆผ์ด ์˜จ๋‹ค.

ํ‘ธ์‹œ ์•Œ๋ฆผ์ด ์‚๊ฑฑ์‚๊ฑฑ์ด๋‚˜๋งˆ ์ž‘๋™ํ•œ๋‹ค..! (๋‚ด์  ๋”ด์“ฐ๋”ด์“ฐ)

๊ทธ ๋’ค์—๋Š” ๋ช‡๊ฐ€์ง€ ํ…Œ์ŠคํŠธํ•ด๋ณด๋‹ˆ ์ถ”์ธก๊ณผ ๊ฐ™๋‹ค.

๊ฒฐ๋ก 

์Šคํ† ์–ด์— ๋ฐฐํฌ๋œ ํ”„๋กœ์ ํŠธ์—์„œ FCM ํ‘ธ์‹œ์•Œ๋ฆผ์ด ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜๋Š” ๋“ฏํ•˜๋‹ค.

๋ฒˆ์™ธ

์•„ ๋ฒˆ์™ธ๋กœ ๋‚ด๊ฐ€ ๊ตฌ๊ธ€๋ง์„ ์–ด๋–ป๊ฒŒ ํ–‡๋Š๋ƒ..
fcm console not working ios
firebase ios push notification not working
firebase cloud messaging notification not received by device ios
Not Receiving push notifications from firebase
...
๋“ฑ๋“ฑ

profile
์ถฉ์ „์ค‘..๐Ÿค”

0๊ฐœ์˜ ๋Œ“๊ธ€