> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.onesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Web SDK - 사용자 지정 코드 설정

> 사용자 지정 코드 통합을 사용하여 OneSignal 웹 푸시 알림을 설정하는 완벽한 가이드입니다. Chrome, Firefox, Safari 및 기타 웹 브라우저용 JavaScript SDK, Service Worker 및 Safari 인증서를 구성하세요.

export const SdkReleasesIframe = ({sdkFilter = undefined, viewMode = undefined, height, ...frameProps}) => {
  const baseUrl = 'https://onesignal.github.io/sdk-releases';
  const buildUrl = (theme, sdkFilter, viewMode) => {
    const url = new URL(baseUrl);
    const params = new URLSearchParams();
    if (theme) {
      params.set('theme', theme);
    }
    if (sdkFilter) {
      params.set('sdk', sdkFilter);
    }
    if (viewMode) {
      params.set('viewMode', viewMode);
    }
    if (params.toString()) {
      url.search = params.toString();
    }
    return url.toString();
  };
  const detectTheme = () => {
    if (document.documentElement.classList.contains('dark')) {
      return 'dark';
    }
    return 'light';
  };
  const [theme, setTheme] = useState('light');
  const [iframeSrc, setIframeSrc] = useState(() => {
    const initialTheme = detectTheme();
    return buildUrl(initialTheme, sdkFilter, viewMode);
  });
  useEffect(() => {
    const currentTheme = detectTheme();
    setTheme(currentTheme);
    setIframeSrc(buildUrl(currentTheme, sdkFilter, viewMode));
    const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
    const handleThemeChange = () => {
      const newTheme = detectTheme();
      setTheme(newTheme);
      setIframeSrc(buildUrl(newTheme, sdkFilter, viewMode));
    };
    if (mediaQuery.addEventListener) {
      mediaQuery.addEventListener('change', handleThemeChange);
    } else {
      mediaQuery.addListener(handleThemeChange);
    }
    window.addEventListener('storage', handleThemeChange);
    const observer = new MutationObserver(handleThemeChange);
    observer.observe(document.documentElement, {
      attributes: true,
      attributeFilter: ['class', 'data-theme']
    });
    return () => {
      if (mediaQuery.removeEventListener) {
        mediaQuery.removeEventListener('change', handleThemeChange);
      } else {
        mediaQuery.removeListener(handleThemeChange);
      }
      window.removeEventListener('storage', handleThemeChange);
      observer.disconnect();
    };
  }, [sdkFilter, viewMode]);
  const getIframeHeight = () => {
    if (viewMode === 'table') {
      return '450';
    }
    if (viewMode === 'mini') {
      return '170';
    }
    return '800';
  };
  const iframeHeight = height || getIframeHeight();
  return <Frame {...frameProps}>
      <iframe src={iframeSrc} width="100%" height={iframeHeight} frameBorder="0" style={{
    border: "none"
  }} title="SDK Releases" key={iframeSrc} />
    </Frame>;
};

<SdkReleasesIframe sdkFilter="react,vue,vue3,angular,wordpress" viewMode="table" height="380" />

<Warning>
  고급 구성 또는 프로그래밍 방식 제어가 필요한 경우에만 이 사용자 지정 코드 설정을 사용하세요. 대부분의 사용자에게는 다음을 권장합니다:

  * [일반 웹 푸시 설정](./web-push-setup)
  * [WordPress 설정](./wordpress)
  * [Shopify 설정](./shopify)
</Warning>

JavaScript 프레임워크를 사용하는 경우 다음 전문 가이드를 따르세요:

* [Angular 설정](./angular-setup)
* [React JS 설정](./react-js-setup)
* [Vue JS 설정](./vue-js-setup)

## 요구 사항

* HTTPS 웹사이트: 웹 푸시는 HTTP 또는 시크릿/비공개 모드에서 작동하지 않습니다.
* 서버 액세스: 서비스 워커 파일을 사이트에 업로드해야 합니다.
* 단일 출처: 웹 푸시는 [동일 출처 정책](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)을 따릅니다. 여러 출처(도메인/하위 도메인)가 있는 경우 여러 OneSignal 앱이 필요합니다(출처당 하나). 이 브라우저 제한을 준수하려면:
  * 구독을 위해 트래픽을 단일 출처로 리디렉션합니다.
  * 출처당 하나씩 여러 OneSignal 앱을 만듭니다.

***

## OneSignal 앱 및 플랫폼 구성

OneSignal 대시보드에서:

* **Settings > Push & In-App > Web**으로 이동합니다.
* **Custom Code** 통합 유형을 선택합니다.

### 사이트 설정

사이트 세부 정보를 추가합니다:

* **Site Name**: 사이트 이름 및 기본 알림 제목.
* **Site URL**: 사이트의 정확한 [출처](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)(예: `https://yourdomain.com`). 사이트가 그렇게 구성되지 않은 경우 `www.` 사용을 피하세요. 여러 출처가 있는 경우 [요구 사항](#requirements)을 참조하세요.
* **Auto Resubscribe**: 사용자가 브라우저 데이터를 지운 후 사이트에 돌아올 때 자동으로 재구독하려면 이것을 활성화합니다(새 권한 프롬프트 불필요).
* **Default Icon URL**: 알림 및 프롬프트에 표시되는 정사각형 `256x256px` PNG 또는 JPG 이미지를 업로드합니다. 설정하지 않으면 기본값으로 벨 아이콘이 사용됩니다.

<Frame caption="OneSignal 대시보드의 웹 설정">
  <img src="https://mintcdn.com/onesignal/uaUYB-ILUGPSRvKB/images/docs/web-push-site-settings.png?fit=max&auto=format&n=uaUYB-ILUGPSRvKB&q=85&s=893a536c16cb4c439bc8fe53892861da" alt="OneSignal web push configuration showing site name, URL, and icon settings" width="2072" height="712" data-path="images/docs/web-push-site-settings.png" />
</Frame>

#### 로컬 테스트

localhost에서 테스트하려면 프로덕션 앱과 별도의 OneSignal 앱을 사용하고 `init` 옵션에 `allowLocalhostAsSecureOrigin: true`를 추가합니다.

자체 서명된 인증서로 HTTPS에서 localhost를 테스트하는 경우 `--allow-insecure-localhost`를 사용하여 Chrome에 잘못된 인증서를 무시하도록 지시해야 할 수 있습니다. Firefox와 Safari는 보안 인증서에 예외를 추가하는 기본 제공 메커니즘을 제공합니다.

```html theme={null}
  <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
  <script>
    window.OneSignalDeferred = window.OneSignalDeferred || [];
    OneSignalDeferred.push(function(OneSignal) {
      OneSignal.init({
        appId: "YOUR_OS_APP_ID",
        allowLocalhostAsSecureOrigin: true,
      });
    });
  </script>
```

### Safari 웹 푸시 인증서(선택 사항)

OneSignal은 무료로 Safari 인증서를 자동으로 제공합니다. 사용해야 하는 기존 Safari 웹 푸시 인증서가 있는 경우에만 이를 활성화하세요.

<Frame caption="기존 인증서용 Safari 인증서 업로드 옵션">
  <img src="https://mintcdn.com/onesignal/uaUYB-ILUGPSRvKB/images/docs/web-push-safari-cert.png?fit=max&auto=format&n=uaUYB-ILUGPSRvKB&q=85&s=a7bbe7cac04c5b2b90988b67f6abc38c" alt="Safari certificate upload option" width="1876" height="882" data-path="images/docs/web-push-safari-cert.png" />
</Frame>

활성화된 경우 `Safari Web .p12 Push Certificate`를 업로드하고 비밀번호를 입력하세요.

**Save**를 클릭하여 계속합니다.

### 서비스 워커 파일 업로드

웹 푸시 구성의 다음 페이지에서 `OneSignalSDKWorker.js` 서비스 워커 파일이 제공됩니다.

Web SDK는 기본적으로 사이트 루트에서 이 파일을 찾습니다(예: `https://yourdomain.com/OneSignalSDKWorker.js`). 코드에서 파일 위치, 이름 및 범위를 변경할 수 있습니다.

<Card title="OneSignal 서비스 워커" icon="gear" href="./onesignal-service-worker">
  고급 서비스 워커 구성, 사용자 지정 통합 및 다른 제공업체에서의 마이그레이션.
</Card>

### 사이트에 코드 추가

이 코드를 웹사이트의 `<head>` 섹션에 추가합니다. 다음을 교체합니다:

* `YOUR_ONESIGNAL_APP_ID`를 OneSignal 대시보드의 실제 앱 ID로
* `YOUR_SAFARI_WEB_ID`를 OneSignal 대시보드의 실제 Safari Web ID로

```html HTML theme={null}
<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<script>
  window.OneSignalDeferred = window.OneSignalDeferred || [];
  OneSignalDeferred.push(async function(OneSignal) {
    await OneSignal.init({
      appId: "YOUR_ONESIGNAL_APP_ID",
      safari_web_id: "YOUR_SAFARI_WEB_ID",
      notifyButton: {
        enable: true,
      },
    });
  });
</script>
```

### iOS 웹 푸시 지원

Apple은 iOS 16.4+를 실행하는 iPhone 및 iPad에서 웹 푸시 알림 지원을 시작했습니다. 지원되는 브라우저에서 방문하면 웹 푸시가 그냥 "작동하는" Android 기기와 달리, Apple은 `manifest.json` 파일 및 사용자가 사이트를 홈 화면에 추가하는 작업 등 몇 가지 추가 요구 사항을 추가했습니다.

<Card title="iOS 웹 푸시 설정" icon="apple" href="./web-push-for-ios">
  필요한 `manifest.json` 파일을 추가하고 사용자가 사이트를 홈 화면에 추가하도록 안내합니다.
</Card>

***

## Testing the OneSignal SDK integration

This guide helps you verify that your OneSignal SDK integration is working correctly by testing push notifications and subscription registration.

### Check web push subscriptions

<Steps>
  <Step title="Launch your site on a test device.">
    * Use Chrome, Firefox, Edge, or Safari while testing.
    * **Do not use Incognito or private browsing mode.** Users cannot subscribe to push notifications in these modes.
    * The prompts should appear based on your [permission prompts](/docs/en/permission-requests) configuration.
    * Click **Allow** on the native prompt to subscribe to push notifications.

    <Frame caption="Web push native permission prompt">
      <img src="https://mintcdn.com/onesignal/FXJz6yFfOqztaEND/images/push/web-push-native-permission-prompt.png?fit=max&auto=format&n=FXJz6yFfOqztaEND&q=85&s=91c15dd6677de6a0ba37da20449ccca1" alt="사용자에게 알림 허용 또는 차단을 묻는 브라우저 기본 권한 프롬프트" width="1724" height="974" data-path="images/push/web-push-native-permission-prompt.png" />
    </Frame>
  </Step>

  <Step title="Check your OneSignal dashboard">
    * Go to **Audience > Subscriptions**.
    * You should see a new entry with the status **Subscribed**.

    <Frame caption="Dashboard showing subscription with 'Subscribed' status">
      <img src="https://mintcdn.com/onesignal/KPVdijCt4_xCbkO8/images/dashboard/web-push-subscription-status.png?fit=max&auto=format&n=KPVdijCt4_xCbkO8&q=85&s=786e9c5e4131f01fef20d11bebd1a3d0" alt="OneSignal 대시보드 구독 페이지에 Subscribed 상태의 웹 푸시 구독이 표시됨" width="1188" height="742" data-path="images/dashboard/web-push-subscription-status.png" />
    </Frame>

    <Check>You have successfully created a [web push subscription](/docs/en/subscriptions).
    Web push subscriptions are created when users first subscribe to push notifications on your site.</Check>
  </Step>
</Steps>

### Set up test users

test users are helpful for testing a push notification before sending a message.

<Steps>
  <Step title="Add to Test Users.">
    In the dashboard, next to the subscription, click the **Options (three dots)** button and select **Add to Test Users**.

    <Frame caption="Adding a device to Test Users">
      <img src="https://mintcdn.com/onesignal/NCUI56Tiw7V-s0dT/images/dashboard/add-to-test-subscriptions.png?fit=max&auto=format&n=NCUI56Tiw7V-s0dT&q=85&s=2455d4cd74ea4ad686f76730cd95bbaa" alt="구독의 옵션 메뉴에 테스트 구독에 추가 옵션이 표시됨" width="1188" height="742" data-path="images/dashboard/add-to-test-subscriptions.png" />
    </Frame>
  </Step>

  <Step title="Name your subscription.">
    Name the subscription so you can easily identify your device later in the **test users tab**.
  </Step>

  <Step title="Create a test users segment.">
    Go to **Audience > Segments > New Segment**.
  </Step>

  <Step title="Name the segment.">
    Name the segment `Test Users` (the name is important because it will be used later).
  </Step>

  <Step title="Add the Test Users filter and click Create Segment.">
    <Frame caption="Creating a 'Test Users' segment with the Test Users filter">
      <img src="https://mintcdn.com/onesignal/NCUI56Tiw7V-s0dT/images/dashboard/create-test-users-segment.png?fit=max&auto=format&n=NCUI56Tiw7V-s0dT&q=85&s=91b8a021be6e83662854e68ec3e1da04" alt="Test Users 필터가 선택되고 세그먼트 이름이 Test Users인 세그먼트 편집기" width="1188" height="742" data-path="images/dashboard/create-test-users-segment.png" />
    </Frame>

    <Check>You have successfully created a segment of test users.
    We can now test sending messages to this individual device and groups of test users.</Check>
  </Step>
</Steps>

### Send test push via API

<Steps>
  <Step title="Get your App API Key and App ID.">
    In your OneSignal dashboard, go to **Settings > [Keys & IDs](/docs/en/keys-and-ids)**.
  </Step>

  <Step title="Update the provided code.">
    Replace `YOUR_APP_API_KEY` and `YOUR_APP_ID` in the code below with your actual keys. This code uses the `Test Users` segment we created earlier.

    ```curl theme={null}
    curl -X \
    POST --url 'https://api.onesignal.com/notifications' \
     --header 'content-type: application/json; charset=utf-8' \
     --header 'authorization: Key YOUR_APP_API_KEY' \
     --data \
     '{
      "app_id": "YOUR_APP_ID",
      "target_channel": "push",
      "name": "Testing basic setup",
      "headings": {
      	"en": "👋"
      },
      "contents": {
        "en": "Hello world!"
      },
      "included_segments": [
        "Test Users"
      ],
      "chrome_web_image": "https://avatars.githubusercontent.com/u/11823027?s=200&v=4"
    }'
    ```
  </Step>

  <Step title="Run the code.">
    Run the code in your terminal.
  </Step>

  <Step title="Check images and confirmed receipt.">
    If all setup steps were completed successfully, the test users should receive a notification.

    <Warning>Only Chrome supports images. Images will appear small in the collapsed notification view. Expand the notification to see the full image.</Warning>

    <Frame caption="Expanded push notification with image on Chrome macOS">
      <img src="https://mintcdn.com/onesignal/FXJz6yFfOqztaEND/images/push/web-push-image.png?fit=max&auto=format&n=FXJz6yFfOqztaEND&q=85&s=8dd90279daff9e24d3fd281e73aa1e74" alt="macOS Chrome에서 커스텀 이미지가 표시된 확장된 푸시 알림" width="740" height="896" data-path="images/push/web-push-image.png" />
    </Frame>
  </Step>

  <Step title="Check for confirmed receipt.">
    In your dashboard, go to **Delivery > Sent Messages**, then click the message to view stats. You should see the **confirmed** stat, meaning the device received the push.

    <Note>Safari does not support confirmed receipt.</Note>

    <Card title="푸시 알림 메시지 보고서" icon="chart-bar" href="/docs/en/push-notification-message-reports">
      푸시 알림의 전달, 클릭 및 전환 통계를 확인하세요.
    </Card>
  </Step>
</Steps>

<Check>You have successfully sent a notification via the API to a segment.</Check>

If notifications are not arriving, contact `support@onesignal.com` with the following:

* The API request and response (copy-paste into a `.txt` file)
* Your Subscription ID
* Your website URL with the OneSignal code

***

## User identification

The previous section covered creating web push [Subscriptions](/docs/en/subscriptions). This section expands to identifying [Users](/docs/en/users) across all their subscriptions (including push, email, and SMS) using the OneSignal SDK. It covers External IDs, tags, multi-channel subscriptions, privacy, and event tracking to help you unify and engage users across platforms.

### Assign External ID

Use an External ID to identify users consistently across devices, email addresses, and phone numbers using your backend's user identifier. This ensures your messaging stays unified across channels and 3rd party systems (especially important for [Integrations](/docs/en/integrations)).

Set the External ID with the SDK's [`login` method](/docs/en/web-sdk-reference#login-external-id) each time a user is identified by your app.

<Note>
  OneSignal generates unique read-only IDs for subscriptions (Subscription ID) and users (OneSignal ID).

  As users download your app on different devices, subscribe to your website, and/or provide you email addresses and phone numbers outside of your app, new subscriptions will be created.

  Setting the External ID via the SDK is highly recommended to identify users across all their subscriptions, regardless of how they are created.
</Note>

### Add Tags

[Tags](/docs/en/add-user-data-tags) are key-value pairs of string data you can use to store user properties (like `username`, `role`, or preferences) and events (like `purchase_date`, `game_level`, or user interactions). Tags power advanced [Message Personalization](/docs/en/message-personalization) and [Segmentation](/docs/en/segmentation) allowing for more advanced use cases.

Set tags with the SDK's [`addTag` and `addTags` methods](/docs/en/web-sdk-reference#addtag-%2C-addtags) as events occur in your app.

In this example, the user reached level 6 identifiable by the tag called `current_level` set to a value of `6`.

<Frame caption="A user profile in OneSignal with a tag called &#x22;current_level&#x22; set to &#x22;6&#x22;">
  <img src="https://mintcdn.com/onesignal/4HyuQPBpu-4xjmQC/images/docs/d4674261847231079fecc176ba88065409c90943e3854b9df200457325a0aed4-Screenshot_2025-03-18_at_14.47.25.png?fit=max&auto=format&n=4HyuQPBpu-4xjmQC&q=85&s=91083bf83a4c03ea40d485b23f072259" width="1380" height="941" data-path="images/docs/d4674261847231079fecc176ba88065409c90943e3854b9df200457325a0aed4-Screenshot_2025-03-18_at_14.47.25.png" />
</Frame>

We can create a segment of users that have a level of between 5 and 10, and use that to send targeted and personalized messages:

<Frame caption="Segment editor showing a segment targeting users with a current_level value of greater than 4 and less than 10">
  <img src="https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/300d36b632a6f6d7017780457bbe2610b71767fd0db093c7611e59714dcbda5b-Screenshot_2025-03-18_at_14.49.56.png?fit=max&auto=format&n=3zq1PvSaqvUE2bIx&q=85&s=b84ab0d2c6eedbd6d4e7a2bf15afe103" width="1380" height="941" data-path="images/docs/300d36b632a6f6d7017780457bbe2610b71767fd0db093c7611e59714dcbda5b-Screenshot_2025-03-18_at_14.49.56.png" />
</Frame>

<br />

<Frame caption="Screenshot showing a push notification targeting the Level 5-10 segment with a personalized message">
  <img src="https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97e09b42d25c6d3f4c7cb0a6fff4dfb8893cbb4b283f7ff1f77977c33113319c-Screenshot_2025-03-18_at_14.55.47.png?fit=max&auto=format&n=tc0EvmtSSX56SX0c&q=85&s=c7839b12057d65a12a4eaddce6e2c11f" width="2764" height="2286" data-path="images/docs/97e09b42d25c6d3f4c7cb0a6fff4dfb8893cbb4b283f7ff1f77977c33113319c-Screenshot_2025-03-18_at_14.55.47.png" />
</Frame>

### Add email and/or SMS subscriptions

The OneSignal SDK creates web push subscriptions automatically when users opt in. You can also reach users through email and SMS channels by creating the corresponding subscriptions.

* Use the [`addEmail` method](/docs/en/web-sdk-reference#addemail-%2C-removeemail) to create email subscriptions.
* Use the [`addSms` method](/docs/en/web-sdk-reference#addsms-%2C-removesms) to create SMS subscriptions.

If the email address and/or phone number already exist in the OneSignal app, the SDK will add it to the existing user, it will not create duplicates.

You can view unified users via **Audience > Users** in the dashboard or with the [View user API](/reference/view-user).

<Frame caption="A user profile with push, email, and SMS subscriptions unified by External ID">
  <img src="https://mintcdn.com/onesignal/56ctKxZSV4m5VEkn/images/docs/b1cf9999d41da6e4ce333e1126612529b85eac47447bb0b434418d082f595acd-Screenshot_2025-03-18_at_14.43.46.png?fit=max&auto=format&n=56ctKxZSV4m5VEkn&q=85&s=7c3885b66e44e097fa0ed7c47f27c911" width="1506" height="848" data-path="images/docs/b1cf9999d41da6e4ce333e1126612529b85eac47447bb0b434418d082f595acd-Screenshot_2025-03-18_at_14.43.46.png" />
</Frame>

<Note>
  Best practices for multi-channel communication

  * Obtain explicit consent before adding email or SMS subscriptions.
  * Explain the benefits of each communication channel to users.
  * Provide channel preferences so users can select which channels they prefer.
</Note>

***

### Privacy & user consent

To control when OneSignal collects user data, use the SDK's consent gating methods:

* [`setConsentRequired(true)`](/docs/en/web-sdk-reference#setconsentrequired): Prevents data collection until consent is given.
* [`setConsentGiven(true)`](/docs/en/web-sdk-reference#setconsentgiven): Enables data collection once consent is granted.

For more on privacy and security:

<Columns cols={2}>
  <Card title="SDK가 수집하는 데이터" icon="database" href="/docs/en/data-collected-by-the-onesignal-sdk">
    OneSignal SDK가 사용자로부터 수집하는 데이터를 확인하세요.
  </Card>

  <Card title="개인 데이터 처리" icon="shield-halved" href="/docs/en/handling-personal-data">
    개인정보 보호 규정에 따라 사용자 데이터를 관리하고 보호하세요.
  </Card>
</Columns>

***

## Listen to push, user, and in-app events

Use SDK listeners to react to user actions and state changes.

The SDK provides several event listeners for you to hook into. See our [SDK reference guide](/docs/en/web-sdk-reference) for more details.

### Push notification events

* [Click event listener](/docs/en/web-sdk-reference#click): Detect when a notification is tapped.
* [Foreground lifecycle listener](/docs/en/web-sdk-reference#foregroundwilldisplay): Control how notifications behave in foreground.

### User state changes

* [User state change event listener](/docs/en/web-sdk-reference#addeventlistener-user-state): Detect when the External ID is set.
* [Permission observer](/docs/en/web-sdk-reference#permissionchange): Track the user's specific interaction with the native push permission prompt.
* [Push subscription change observer](/docs/en/web-sdk-reference#addeventlistener-push-subscription-changes): Track when the push subscription status changes.

***

## Advanced setup & capabilities

Explore more capabilities to enhance your integration:

<Columns cols={3}>
  <Card title="OneSignal로 마이그레이션" icon="rotate" href="/docs/en/migrating-to-onesignal">
    다른 푸시 공급자에서 OneSignal로 이전하세요.
  </Card>

  <Card title="통합" icon="plug" href="/docs/en/integrations">
    OneSignal을 서드파티 도구 및 플랫폼과 연결하세요.
  </Card>

  <Card title="액션 버튼" icon="bell" href="/docs/en/action-buttons">
    푸시 알림에 인터랙티브 버튼을 추가하세요.
  </Card>

  <Card title="다국어 메시징" icon="globe" href="/docs/en/multi-language-messaging">
    사용자의 선호 언어로 현지화된 메시지를 전송하세요.
  </Card>

  <Card title="Identity Verification" icon="shield-check" href="/docs/en/identity-verification">
    서버 측 Identity Verification으로 SDK 통합을 보호하세요.
  </Card>

  <Card title="커스텀 아웃컴" icon="chart-line" href="/docs/en/custom-outcomes">
    메시지와 연결된 커스텀 전환 이벤트를 추적하세요.
  </Card>
</Columns>

### Web SDK setup & reference

<Columns cols={2}>
  <Card title="웹 푸시 설정" icon="gear" href="/docs/en/web-push-setup">
    통합을 위한 모든 핵심 웹 푸시 기능을 활성화하세요.
  </Card>

  <Card title="Web SDK 레퍼런스" icon="code" href="/docs/en/web-sdk-reference">
    사용 가능한 메서드와 구성 옵션에 대한 전체 세부 정보.
  </Card>
</Columns>

<Check>Congratulations! You've successfully completed the Web SDK setup guide.</Check>

***

***

## FAQ

### 웹 푸시 알림에 HTTPS가 필요한가요?

예. 모든 최신 브라우저는 푸시 알림 지원을 위해 HTTPS가 필요합니다. 사이트가 HTTP를 사용하는 경우 웹 푸시를 설정하기 전에 HTTPS로 마이그레이션해야 합니다.

### 단일 페이지 애플리케이션(SPA)에서 이 설정을 사용할 수 있나요?

예. Custom Code 설정은 React, Angular 또는 Vue와 같은 프레임워크로 빌드된 SPA에 권장되는 접근 방식입니다. [Angular](./angular-setup), [React](./react-js-setup), [Vue](./vue-js-setup)에 대한 프레임워크별 가이드는 [이 페이지 상단](#)을 참조하세요.

### 사용자가 브라우저 데이터를 지우면 어떻게 되나요?

사용자의 푸시 구독이 제거됩니다. **Auto Resubscribe**가 활성화된 경우 다음번에 사이트를 방문할 때 자동으로 재구독됩니다.

***

## 관련 페이지

<Columns cols={2}>
  <Card title="권한 요청" icon="bell" href="./permission-requests">
    사용자에게 구독을 요청하는 시기와 방법을 구성합니다.
  </Card>

  <Card title="Web SDK 참조" icon="code" href="./web-sdk-reference">
    OneSignal Web SDK의 전체 API 참조.
  </Card>
</Columns>
