# 모바일 메시지 인박스 설정

메시지 인박스를 사용하면 이러한 알림을 위한 전용 섹션을 만들어 앱에 가장 중요한 메시지를 보관할 수 있습니다. 메시지는 알림과 함께 또는 알림 없이 인박스로 전달될 수 있으며, 이는 설정에서 선택할 수 있습니다.

<Aside type="note">
[메시지 인박스 작동 방식](/ko/product/messaging-channels/message-inbox/mobile-message-inbox)에 대해 자세히 알아보세요.
</Aside>

<Aside type="note">
웹 플랫폼용 메시지 인박스를 구현하려면 [웹 메시지 인박스 가이드](/ko/developer/guides/message-inbox/web-message-inbox/)를 참조하세요.
</Aside>

## 앱에 인박스 설정하기

앱에 메시지 인박스를 구현하려면 Pushwoosh 인박스 라이브러리를 프로젝트에 추가하세요. 인박스 설정에 대한 자세한 지침과 샘플 프로젝트가 포함된 Github 리포지토리를 참조하세요:

**iOS**

[https://github.com/Pushwoosh/pushwoosh-inbox-ui-ios-sdk#pushwoosh-inbox-ui](https://github.com/Pushwoosh/pushwoosh-inbox-ui-ios-sdk#pushwoosh-inbox-ui)

**Android**

[https://github.com/Pushwoosh/pushwoosh-inbox-ui-android-sdk#pushwoosh-inbox-ui](https://github.com/Pushwoosh/pushwoosh-inbox-ui-android-sdk#pushwoosh-inbox-ui)

**크로스플랫폼 프레임워크**

크로스플랫폼 앱에서 메시지 인박스를 구현하려면 `presentInboxUI` 메서드를 호출하세요. 현재 Cordova, React Native, Flutter, Xamarin에서 사용할 수 있습니다.

<Aside type="note" title="proguard와 함께 플러그인에서 메시지 인박스 사용하기">

Android 앱이 코드 축소를 위해 proguard를 사용하는 경우, **proguard-rules.pro**에 다음 규칙을 추가해야 합니다:

```
#INBOX
-keep public class com.pushwoosh.inbox.PushwooshInboxPlugin {
 *;
}
```
</Aside>

## 읽지 않은 메시지 배지

인박스 아이콘 위에 배지로 읽지 않은 메시지 수를 표시하려면 다음 API 메서드를 사용하세요:

**iOS**

`[PWInbox unreadMessagesCountWithCompletion:^(NSInteger count, NSError *error) { }];`

**Android**

`PushwooshInbox.unreadMessagesCount(result -> { });`