안녕하세요 선후입니다.
로컬 노티피케이션을 뛰웠는데
첨부한 스크린샷 처럼 상단에 노티랑 같은 모양의 팝업? 같은 것이 뜨더니
드레그로 좌우로 날려버리지 않는 이상 사라지지가 않습니다.
노티를 뛰우더라도 상단에 저런 팝업이 안뜨게하거나 뜨더라도 바로 사라지게하는
방법이 꼭 필요합니다. 도와주시면 감사하겠습니다. ㅠㅠ
추가 내용 : 노티모양은 커스텀 레이아웃을 만들어서 녹색배경에 이미지가 보이는 것이 노티입니다.
RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.notification_service);
String CHANNEL_ID = "AAA";
int iStr = R.string.notification_service_name;
String strChannelName = context.getResources().getString(iStr);
NotificationChannel channel = new NotificationChannel(CHANNEL_ID,
strChannelName,
NotificationManager.IMPORTANCE_DEFAULT);
channel.enableLights(false);//OFF
channel.setLightColor(Color.BLUE);
channel.setSound(null, null);
channel.enableVibration((false));
//채널 생성 ((NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE)).createNotificationChannel(channel);
builder = new NotificationCompat.Builder(this, CHANNEL_ID);
notification =
builder
.setTicker("TICKER")
.setLargeIcon(BitmapFactory.decodeResource(res, R.drawable.icon_notify))
.setShowWhen(true)
.setContentIntent(pendingintent)
.setContentTitle(getText(R.string.app_name))
.setContent(remoteViews)
.setVibrate(new long[]{0})
.setPriority(NotificationManager.IMPORTANCE_DEFAULT)//
.build();