[RN ์—๋Ÿฌ๋…ธํŠธ๐Ÿ”ฅ] firebase cloud messaging (FCM): Notifications are not allowed for this application ์—๋Ÿฌ

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

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

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

firebase cloud messaging์„ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์—ˆ๋‹ค.
ios๋Š” ๊ถŒํ•œ์„ ์š”์ฒญํ•˜๋Š” ์ ์—์„œ ๊นŒ๋‹ค๋กญ๋‹ค ์–˜๊ธฐ๋ฅผ ์—ฌ๋Ÿฌ๋ฒˆ ๋“ค์–ด์„œ ์ซ„์•„ ์žˆ์—ˆ๋Š”๋ฐ,
์‰ฝ์ง„ ์•Š๋”๋ผ.

์ฒ˜์Œ์— ios ์•Œ๋ฆผ๊ถŒํ•œ ์ƒํƒœ๋ฅผ ๋ฌผ์–ด๋ณด๊ณ , ๊ถŒํ•œ์š”์ฒญ์„ ํ•˜๋Š” ์ž‘์—…์ด ํ•„์š”ํ•œ๋ฐ.

messaging().requestPermission()

์œ„์˜ ํ•จ์ˆ˜๋กœ ์ƒํƒœ๋ฅผ ๋ฌผ์–ด๋ณด๊ณ , ๊ถŒํ•œ ์š”์ฒญ์„ ํ•ด์•ผํ•˜๋Š”๋ฐ
์ € api๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๊ฒฝ๊ณ ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค

Possible Unhandled Promise Rejection (id: 10):
Error: [messaging/unknown] Notifications are not allowed for this application
NativeFirebaseError: [messaging/unknown] Notifications are not allowed for this application
requestUserPermission$@http://192.168.0.5:8081/src/config/CloudMessaging.bundle?platform=ios&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true:60:70
tryCatch@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:1418:23
invoke@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:1591:32
tryCatch@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:1418:23
invoke@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:1491:30
http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:1501:21
tryCallOne@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:4085:16
http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:4186:27
_callTimer@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:30685:17
_callImmediatesPass@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:30724:17
callImmediates@http://192.168.0.5:8081/index.bundle?platform=ios&dev=true&minify=false:30941:33

์‚ฝ์งˆ๋กœ ์ธํ•ด ์•Œ๊ฒŒ๋„๋‹ˆ ๋ฐœ์ƒ ์ด์œ ๋Š” ios product name์ด ์˜์–ด๊ฐ€ ์•„๋‹ ๊ฒฝ์šฐ ์ด๋Ÿฐ ๊ฒฝ๊ณ ๊ฐ€ ๋‚œ๋‹ค.

xcode > Build Settings > Packaging > Product Name

์„ ํ•œ๊ธ€์—์„œ ์˜์–ด๋กœ ๋ฐ”๊พธ๋‹ˆ ์ž˜ ์ž‘๋™ ํ•˜์˜€๋‹ค. ๐Ÿ˜ž


์ฐธ๊ณ 
https://github.com/invertase/react-native-firebase/issues/4093#issuecomment-694464442

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

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

comment-user-thumbnail
2021๋…„ 9์›” 13์ผ

๋•๋ถ„์— ํ•œ์‹œ๊ฐ„ 30๋ถ„ ์‚ฝ์งˆํ•˜๊ณ  ํ•ด๊ฒฐํ–ˆ๋„ค์š” ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ