[RN ์—๋Ÿฌ๋…ธํŠธ๐Ÿ”ฅ] ios notification service extension ์„ธํŒ… ํ›„ provisioning profile์ด ํ•„์š”ํ•˜๋‹ค?

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

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

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

๐Ÿ”ฅ ๊ฐœ์š”

์• ์ฆ์˜ fcm ํŠนํžˆ ios noti
ํ•˜์ง€๋งŒ ์‚ฌ๋ž‘ํ•˜๋Š” ๋งˆ์Œ์„ ๋‹ด์•„ ๋ธ”๋กœ๊ทธ ๊ธ€์„ ์ž‘์„ฑํ•ด๋ณธ๋‹ค.

ํ‘ธ์‹œ์•Œ๋ฆผ์—์„œ ์ด๋ฏธ์ง€๋ฅผ ๋ณด์ด๊ฒŒ ํ•˜๋Š”๊ฑด ์•„๋ž˜์™€ ๊ฐ™์€ ์ƒํ™ฉ์„ ๋œปํ•œ๋‹ค.
์šฐ๋ฆฌ ํšŒ์‚ฌ ์•ฑ์ธ ์˜ค๋Š˜์˜ํ—ค๋“œ๋ผ์ธ ์—์„œ๋Š” ์ด๋ฏธ์ง€๋ฅผ ๋ณด๋ƒˆ์Œ์—๋„ ์ด๋ฏธ์ง€๊ฐ€ ๊ฐ€์ง€ ์•Š๊ณ ,
์œ ํŠœ๋ธŒ ์—์„œ ์•Œ๋ฆผ์„ ์ค„ ๋•, ์ €๋ ‡๊ฒŒ ์ด๋ฏธ์ง€๊ฐ€ ๊ฐ„๋‹ค.

ios๋Š” android์™€ ๋‹ค๋ฅด๊ฒŒ ํ‘ธ์‹œ์•Œ๋ฆผ์˜ ์ด๋ฏธ์ง€๋ฅผ ์„ค์ •ํ•ด์ค˜์•ผ ํ•˜๋Š”๋ฐ,
์ด๋ฏธ์ง€ ์„ค์ •ํ•˜๋Š”๊ฑด https://rnfirebase.io/messaging/ios-notification-images rn firebase๋ฌธ์„œ์—์„œ๋„ ์ž์„ธํžˆ ๋‚˜์™€์žˆ๊ณ , ๋‚˜์˜ ๋ธ”๋กœ๊ทธ ๊ธ€์ธ [RN Library ๐Ÿ“š] rn์—์„œ ํ‘ธ์‹œ์•Œ๋ฆผ ๋ณด๋‚ด๊ธฐ! firebase cloud messaging FCM ์„ธํŒ…ํ•˜๊ธฐ ์—์„œ๋„
์„ค๋ช…ํ•ด๋†จ๋‹ค.

๐Ÿ”ฅ ๋ฌธ์ œ

๊ทผ๋ฐ ๋ฌธ์ œ๋Š” ๋ฌธ์„œ์—์„œ ์„ค๋ช…ํ•œ๋Œ€๋กœ ์„ธํŒ…์„ ํ•˜๊ณ  adhoc์œผ๋กœ export ํ•˜๋ ค๊ณ  ํ•˜๋ฉด,
์•„๋ž˜์™€ ๊ฐ™์ด ๋‚˜์˜จ๋‹ค.

์›๋ž˜ oheadline.app์˜ provisioning profile๋กœ adhoc์ด ๋˜์—ˆ์—ˆ๋Š”๋ฐ,
ImageNotification.appex์˜ provisioning profile๋„ select ํ•ด์•ผ๋œ๋‹ค.
๋ฌธ์„œ์—๋Š” ๊ด€๋ จ ์„ค๋ช…์ด ์—†์–ด์„œ ์กฐ๊ธˆ ํ—ค๋งธ๋Š”๋ฐ,

๊ตฌ๊ธ€์— ios notification service extension provisioning profile๋ฅผ ์ณ๋ณด๋‹ˆ
๋‹ค์–‘ํ•œ ์‚ฌ๋žŒ๋“ค์ด ์ธ์ฆ์„œ, ํ”„๋กœ๋น„์ €๋‹ ํ”„๋กœํŒŒ์ผ์„ ์ƒˆ๋กœ ๋งŒ๋“ค์–ด์•ผ ํ•˜๋Š”์ง€์— ๋Œ€ํ•ด ์งˆ๋ฌธ์„ ๋งŽ์ด ๋˜์กŒ๊ณ ,
๊ทธ์— ๋Œ€ํ•œ ๋‹ต์œผ๋กœ ์•„๋ž˜ ๊ธ€์„ ๋ฐœ๊ฒฌํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.
https://stackoverflow.com/questions/47466759/do-i-require-distribution-provisioning-profile-for-notification-service-extensio

๐Ÿ”ฅ ํ•ด๊ฒฐ

Identifier, provisioning profile์„ ์ƒˆ๋กœ ๋งŒ๋“ค์–ด์•ผ ํ•˜๋Š” ๋“ฏํ•˜๋‹ค.

๋‚˜๋Š” notification service extension์˜ ์ด๋ฆ„์„ firebase ๋ฌธ์„œ์—์„œ ํ•œ๋Œ€๋กœ ImageNotification์œผ๋กœ ํ–ˆ๋‹ค.
์ฐธ๊ณ  ์‹œ์— ๋ณธ์ธ์ด ์„ค์ •ํ•œ notification service extension ์ด๋ฆ„์œผ๋กœ ํ…Œ์ŠคํŠธ ํ•ด๋ณด์‹œ๊ธธ..

  1. apple developer > Identifiers ์—์„œ ์ƒˆ๋กœ์šด Identifiters์„ ๋งŒ๋“ ๋‹ค. com.XXX.XXX.ImageNotification์œผ๋กœ ์ƒ์„ฑํ•˜๋ฉด ๋œ๋‹ค.
  2. apple developer > Profiles ์—์„œ ์œ„์—์„œ ๋งŒ๋“  Identifier์„ ๊ฐ€์ง€๊ณ  adhoc์˜ ๊ธฐ๋Šฅ์„ ๊ฐ€์ง„ provisioning profile์„ ๋งŒ๋“ค๋ฉด ๋œ๋‹ค.
  3. ์œ„์˜ ์ƒํ™ฉ์—์„œ ImageNotification.appex์˜ select profile์— ์ง€๊ธˆ ๋งŒ๋“  ์ธ์ฆ์„œ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•ด์„œ ๋„ฃ์–ด์ฃผ๋ฉด ๋œ๋‹ค.

๐Ÿ”ฅ ์ถ”๊ฐ€

App Store ๋ฐฐํฌ ์‹œ, ์ด๋Ÿฐ warning์„ ๋งŒ๋‚ฌ๋‹ค.

๋ญ ๋ฒ„์ „์ด ๋งž์ง€ ์•Š์•„ ์ƒ๊ธด ๊ฒฝ๊ณ ์ด๋‹ค.
๋ณธ์ธ ํ”„๋กœ์ ํŠธ xcode์˜ General > Identity > Version & Build๋ฅผ ๊ฐ™๊ฒŒ ํ•ด์•ผ ํ•œ๋‹ค.

์ฒ˜์Œ ์ƒ์„ฑํ•˜๋Š” ๊ฑฐ๋ผ๋ฉด, version 1.0์— Build 0 ์ผํ…๋ฐ
๊ทธ๊ฑธ ๋ณธ์ธ ํ”„๋กœ์ ํŠธ์™€ ๊ฐ™๊ฒŒ ์ˆ˜์ •ํ•˜๋ฉด ๊ฒฝ๊ณ ๊ฐ€ ์‚ฌ๋ผ์ง„๋‹ค.

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

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