# iOS SDK 快速入门

通过这个快速简单的示例开始使用 Pushwoosh iOS SDK。

## 前提条件

要将 Pushwoosh iOS SDK 集成到您的应用中，您需要满足以下条件：

<TranslatedFragment id="prerequisites-ios" />

## 下载示例项目

从 GitHub 克隆示例项目：
```bash
git clone https://github.com/Pushwoosh/pushwoosh-ios-sample.git
```

## 配置项目

<TranslatedFragment id="configure-sample-app-ios" />

## 运行项目

1. 构建并运行项目。
2. 应用将有两个标签页：“Actions” 和 “Settings”。导航到 **Settings** 标签页。
3. 点击 **Register for Pushes** 按钮。
4. 授予推送通知权限。设备将在 Pushwoosh 注册。

您应该会看到类似这样的日志条目：
```bash
Pushwoosh: Initializing application runtime
[PW] BUNDLE ID: __YOUR_BUNDLE_ID__
[PW] APP CODE: __YOUR_APP_CODE__
[PW] PUSHWOOSH SDK VERSION: 6.7.13
[PW] HWID: __YOUR_HWID__
[PW] PUSH TOKEN: (null)
[PW] [I] -[PWNotificationManagerCompatiOS10] NotificationCenter authorization granted: 1
[PW] [I] -[PWPushNotificationsManagerCommon] Registered for push notifications: __YOUR_PUSH_TOKEN__
```
您的设备现已在 Pushwoosh 注册。

## 发送推送通知

返回 Pushwoosh Control Panel 并向您注册的设备[发送推送通知](/zh/product/messaging-channels/push-notifications/send-push-notifications/one-time-push)。

## 后续步骤
要了解更多信息，请参阅[基本集成指南](/zh/developer/pushwoosh-sdk/ios-sdk/setting-up-pushwoosh-ios-sdk/basic-integration-guide/)