fcm ์•Œ๋ฆผ ๋ˆ„๋ฝ๋ฌธ์ œ ํ•ด๊ฒฐ

ยท Android
public class FirebaseCloudMessageService { // ์•Œ๋ฆผ ๋ฉ”์‹œ์ง€์™€ ๋ฐ์ดํ„ฐ ํŽ˜์ด๋กœ๋“œ ํฌํ•จ public static void sendMessage(String registrationToken, String content, int messageId, int roomId, String name, String userProfile) throws Exception { // ๋ฐ์ดํ„ฐ ๋ฉ”์„ธ์ง€ // ํฌ๊ทธ๋ผ์šด๋“œ, ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ๋Š” ์ง์ ‘ ์ผ๊ด€๋˜๊ฒŒ ์ฒ˜๋ฆฌ Message message = Message.builder() // ๋ฉ”์‹œ์ง€ ๊ตฌ์„ฑ์„ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ๋Š” Builder ๊ฐ์ฒด๊ฐ€ ๋ฐ˜ํ™˜ .putData("title", name) // ์•Œ๋ฆผ ์ œ๋ชฉ์„ ๋ฐ์ดํ„ฐ ํŽ˜์ด๋กœ๋“œ์— ์ถ”๊ฐ€ .putData("userProfile..
becky(์ง€์€)
'fcm ์•Œ๋ฆผ ๋ˆ„๋ฝ๋ฌธ์ œ ํ•ด๊ฒฐ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก