pendingintent의 requsetcode를 다르게 주어
여러개의 notification을 띄울 수는 있으나
각각의 Title과 Text의 데이터가
마지막에 설정한 notification으로 통일되는 문제가 있습니다.
1씩 증가하는 count 변수를 만들어 requestcode를 주었고,
pendingIntent = PendingIntent.getBroadcast(MainActivity.this, count, receiverIntent, 0);
count변수를 이용해 SharedPreferences에 저장되는 값들을 배열처럼 다루고 있습니다.
editor.putString("Title_" + count, title);
editor.putString("Content_" + count, content);
builder.setContentTitle(pref.getString("Title_" + count, "Title"));
builder.setContentText(pref.getString("Content_" + count, "Text"));
로 Notification의 속성을 지정했습니다.
아무래도 예약된 Notification이 실행될 때 각 속성이 지정되지 않을까하고 추측은 해보지만
어찌해야될지 잘 모르겠네요. 도움 부탁드립니다.