# Send Push Notifications

앱 푸시를 전송하는 동작을 수행해요.

<div align="left"><figure><img src="https://lh7-us.googleusercontent.com/QRItw3SEz-CzL_TEj6SBJXjhGAOH7B6Abm-VC5zsdCIFk1mQtkSEtmiLPqc9wyURRjcbC5jFU8ByJlf7my_l7-lM7Odd5lOPA50EG__pmWHRkddRHYGawsj4B1ePdxRs_5_XyGQNZaA0spMn08h4Mz4" alt="" width="375"><figcaption></figcaption></figure></div>

**Subject** : 푸시 알림의 제목을 입력해요.

**Set variables to use in subject** : 푸시 알림의 제목을 동적으로 보낼 때 사용할 수 있어요.

동적으로 사용하고 싶은 메세지를 변수 설정에서 항목 ID에 작성해줘요. 작성한 항목 ID의 변수를 메세지 제목에 함께 사용하고 항목 값에 항목 ID에 사용할 동적 값을 작성해줘요.

<div align="left"><figure><img src="https://lh7-us.googleusercontent.com/2DTAtDf1BXodUi_AjNfYeIompNpQabFrLG3jjG9D1trK6UUv7Yp5WchWE-0OGv-3H_FFxUUqRsedF9EZnOCryjEUmKfiKsfm_nTsnhmgXpUswP2uoFNsj1r5zJ960mnJsHidvxgfPCjLmvAETC1RBok" alt="" width="375"><figcaption></figcaption></figure></div>

> 댓글을 남긴 유저의 닉네임을 사용하여, 제목에 댓글 남긴 유저의 닉네임을 메세지 제목에서 사용할 수 있어요.

**Content** : 푸시 알림의 내용을 입력해요.

**Set variables to use in contents** : 푸시 알림의 내용을 동적으로 보낼 때 사용할 수 있어요.

동적으로 사용하고 싶은 메세지를 변수 설정에서 항목 ID에 작성해줘요. 작성한 항목 ID의 변수를 메세지 내용에 사용하고 항목 값에 항목 ID에 사용할 동적 값을 작성해줘요.

<div align="left"><figure><img src="https://lh7-us.googleusercontent.com/D5qPtM9bcqxRxrbyaM1OnOfEoZm7t3snkHqAzk76mYcOS7cLyppbOcvQRdo4DxoBZQW39J_yMdILII-3FuRsoPehH1gQCnpYR1_DttrvsTVm3_ST_lGIftRcaYwr8P5bTHsM6KMl-TkaMJiIgPjPrM8" alt="" width="375"><figcaption></figcaption></figure></div>

> 댓글을 남긴 유저의 닉네임을 사용하고, 댓글을 남긴 글 제목의 정보를 사용하여, 푸시의 내용에 댓글을 남긴 유저의 닉네임과 댓글을 단 글의 제목을 사용할 수 있어요.

Recipient

* "all" : 모든 유저에게 보낼 때 사용할 수 있어요.
* ObjectId : 선택한 유저에게만 보낼 수 있어요.
  * user의 ObjectId를 사용해요.
* List : 복수의 선택한 유저에게 보낼 수 있어요.
  * users로 구성된 list를 입력해요.

2024.01.22 Jinny

Send Push Notifications

This function enables sending push notifications within the app.

2023.08.11 Song

\
\ <br>


---

# 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://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/create-logic/flow_option/sendpushnotifications.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.
