Push 수신 목록 조회 | Push | Appbox Android SDK 가이드

Push 수신 목록 조회

기기에 저장된 Push 수신 목록을 조회합니다. 앱 안에 알림함 화면을 만들 때 사용합니다.

Push 수신 목록 조회

AppBox.getPushHistory(context, fromDate, toDate, callback)

Kotlin
1 // 전체 조회
2 AppBox.getPushHistory(this) { items, error ->
3 if (error != null) return@getPushHistory
4 renderInbox(items.orEmpty())
5 }
6
7 // 기간 조회: 날짜 형식은 yyyyMMdd
8 AppBox.getPushHistory(this, "20260501", "20260506") { items, error ->
9 if (error != null) return@getPushHistory
10 renderInbox(items.orEmpty())
11 }
1 // 전체 조회
2 AppBox.getPushHistory(this, new AppBoxValueCallback<List<AppBoxPushHistoryItem>>() {
3 @Override
4 public void onComplete(List<AppBoxPushHistoryItem> items, Throwable error) {
5 if (error != null) return;
6 renderInbox(items == null ? Collections.emptyList() : items);
7 }
8 });
9
10 // 기간 조회: 날짜 형식은 yyyyMMdd
11 AppBox.getPushHistory(this, "20260501", "20260506",
12 new AppBoxValueCallback<List<AppBoxPushHistoryItem>>() {
13 @Override
14 public void onComplete(List<AppBoxPushHistoryItem> items, Throwable error) {
15 if (error != null) return;
16 renderInbox(items == null ? Collections.emptyList() : items);
17 }
18 });

Request 항목 정의

Request 항목필수여부설명기본값
context필수Application 또는 Activity context-
fromDate-시작일. yyyyMMdd없음
toDate-종료일. yyyyMMdd없음
callback필수AppBoxValueCallback<List<AppBoxPushHistoryItem>>-
fromDatetoDate조회 범위
없음없음전체
값없음해당 날짜 하루
값값시작일과 종료일 포함
없음값오류


Response 항목 정의

Response 결과값
itemsList<AppBoxPushHistoryItem>. 실패 시 null
items[].id수신 항목 식별자
items[].title, items[].body알림 제목과 본문
items[].url, items[].imageUrl연결 URL과 이미지 URL
items[].createdAt수신 시각
items[].isOpened열람 여부
오류error: 날짜 형식 오류, 존재하지 않는 날짜(자동 보정하지 않음), toDate만 지정


날짜 형식은 yyyyMMdd입니다. 걸음 수 조회(getHealthSteps)는 yyyy-MM-dd로 다릅니다. 기기에 저장된 목록입니다. 서버의 발송 원본과 다를 수 있습니다.

웹 브릿지에서는 푸시 수신 리스트의 message.getPushList입니다.

www.naver.com
QR 코드를 촬영하면 입력하신 주소의
앱 예시 화면을 테스트할 수 있습니다.
* 스캔 후 바로 앱 다운로드 이동합니다.