fcm 푸시 이벤트를 구현 작업하고 있습니다.
테스트로 여러 디바이스에서 푸시테스트를 하고 있는데
갤럭시 s8+ 오레오 기기에서 진동만 오고 알림 메세지가 나오지를 않습니다.
(s9 시리즈는 없어서 테스트 못해봤어요ㅠ)
다른기기는 정상적으로 작동 합니다. S6, S7 노트,탭
어떤 부분을 건드려야 하는지 알수 있을가요?
Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(getApplicationInfo().icon)
.setContentTitle(title)
.setContentText(body)
.setAutoCancel(true)
.setSound(defaultSoundUri)
.setVibrate(new long[]{100, 0, 100, 0})
.setContentIntent(pendingIntent)
.setDefaults(Notification.DEFAULT_SOUND | Notification.DEFAULT_VIBRATE);
NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
// notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());
notificationManager.notify((int) SystemClock.currentThreadTimeMillis(), notificationBuilder.build());
제가 사용한 푸시 코드입니다.