# 푸시 알림 데이터 이용

앱이 Foreground 상태일 때 화면에 알림 메시지가 보여지도록 구현하지 않은 이상 화면에 배너 형태로 알림 메시지가 보이지 않습니다.

앱이 Foreground 상태인데 화면에 배너 형태로 알림 메시지가 보인다면 이미 고객님께서 알림 메시지가 보여지도록 구현한 것입니다. 이 경우, 해당 구현부분 상단에 아래의 내용을 참조하여 수정해주셔야 합니다.

### 딥링크 데이터 이용시 주의사항 <a href="#foreground" id="foreground"></a>

딥링크 데이터를 이용할 때 아래와 같은 점에 유의해주세요.

1. 앱이 Foreground상태일 때 딥링크 URL로 화면이 바로 이동하면 이용자가 당황스러울 수 있습니다. 이에 대해 기획단계부터 어떻게 할 것인지 고민해주세요. 보통은 로컬 Notification을 한 번 더 띄우기도 합니다.
2. 앱의 세 가지 상태 (Foreground, Background, Killed)에 따라 작동 매카니즘이 다릅니다. 상태에 따른 구현에 대한 자세한 내용은 아래의 React Native Firebase 의 Cloud Messagin 메뉴를 참조 하여 구현 해 주세요.

{% embed url="<https://rnfirebase.io/messaging/usage#foreground-state-messages>" %}
앱상태에 따른 React Native 구현 방법
{% endembed %}

### jsonDict 에 포함된 데이터 Key/Value <a href="#push_jsondict" id="push_jsondict"></a>

jsonDict 는 일반 문자열입니다. 해당 문자열은 JSON 형식으로 되어있으니 사용하시는 JSON Parser를 이용하여 JSON 객체로 전환하여 사용해주세요.

{% hint style="info" %}
"RW\_push\_payload\_deeplink" key 는 메시지 발송시 딥링크정보를 입력하였을때 확인되는 Payload key 입니다.
{% endhint %}

<table><thead><tr><th width="350.55502867577223">Payload 키</th><th width="175.80982396371422">Payload 값</th><th>필수여부</th></tr></thead><tbody><tr><td>RW_push_payload_TT</td><td>메시지 타이틀 </td><td>필수</td></tr><tr><td>RW_push_payload_BD</td><td>메시지 내용</td><td>필수</td></tr><tr><td>RW_push_payload_IM</td><td>이미지 URL</td><td>X</td></tr><tr><td>RW_push_payload_MV</td><td>유튜브 동영상 URL</td><td>X</td></tr><tr><td>RW_push_payload_deeplink</td><td>딥링크 URL</td><td>X</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://document.wisetracker.co.kr/v2-developer/push/use_push_data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
