안녕하세요 <div><br></div> <div>현업으로 웹개발쪽 일을 하고 있는데 </div> <div><br></div> <div>팔짜에도 없는 안드로이드 앱 푸시 작업 중 막히는 부분이 있어 질문드립니다</div> <div><br></div> <div>고객 요청으로 앱 푸시 기능을 추가하고 있는데 기능구현은 완료 하였으나,</div> <div><br></div> <div>안드로이드 상단 알림 아이콘이 무슨짓을 해도 변경이 안되고 있습니다..</div> <div><br></div> <div>구글 파이어베이스 message 추가해서 구현한거라 </div> <div><br></div> <div>manifest 에 애플리케이션 메타값으로</div> <div><pre style="font-family:'굴림체';font-size:9pt;"><<span style="color:#000080;font-weight:bold;">meta-data<br></span><span style="color:#000080;font-weight:bold;"> </span><span style="color:#660e7a;font-weight:bold;">android</span><span style="color:#0000ff;font-weight:bold;">:name=</span><span style="color:#008000;font-weight:bold;">"com.google.firebase.messaging.default_notification_icon"<br></span><span style="color:#008000;font-weight:bold;"> </span><span style="color:#660e7a;font-weight:bold;">android</span><span style="color:#0000ff;font-weight:bold;">:resource=</span><span style="color:#008000;font-weight:bold;">"@drawable/ic_stat_ic_notification" </span>/></pre><pre style="font-family:'굴림체';font-size:9pt;">추가 후</pre><pre style="font-family:'굴림체';font-size:9pt;">firebasemessagingservice.java 에 </pre><pre style="font-family:'굴림체';font-size:9pt;"><br></pre><pre style="font-family:'굴림체';font-size:9pt;"><span style="background-color:#e4e4ff;">NotificationCompat</span>.Builder notificationCompatBuilder=<span style="color:#000080;font-weight:bold;">new </span><span style="background-color:#e4e4ff;">NotificationCompat</span>.Builder(<span style="color:#000080;font-weight:bold;">this</span>,<span style="color:#008000;font-weight:bold;">"123454"</span>);<br><br>notificationCompatBuilder.setSmallIcon(R.drawable.<span style="color:#660e7a;font-weight:bold;font-style:italic;">ic_stat_ic_notification</span>)<br> .setContentTitle(<span style="color:#008000;font-weight:bold;">"FCM Push Test"</span>)<br> .setContentText(messageBody)<br> .setAutoCancel(<span style="color:#000080;font-weight:bold;">true</span>)<br> .setSound(defaultSoundUri)<br> .setContentIntent(pendingIntent);<br>notificationCompatBuilder.build();<br>NotificationManager notificationManager =<br> (NotificationManager) getSystemService(Context.<span style="color:#660e7a;font-weight:bold;font-style:italic;">NOTIFICATION_SERVICE</span>);<br><br><span style="color:#808080;font-style:italic;">//notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());<br></span>notificationManager.notify(<span style="color:#0000ff;">123454</span>,notificationCompatBuilder.build());</pre><pre style="font-family:'굴림체';font-size:9pt;"><br></pre><pre style="font-family:'굴림체';font-size:9pt;">이렇게 추가된 상태구요.. 하도 안되서 푸시 요청할때 </pre><pre></pre><pre>혹시 해결 방안을 알고 계신분이 있으시면 조언 부탁드립니다 </pre><pre><br></pre><pre>감사합니다.</pre></div> <div><br></div>
살려주세요 ㅠㅠ 젭ㄹ라ㅠㅠㅠㅠㅠㅠㅠ
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.