You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,35 @@ For more information, read Iterable's [Setting up iOS Push Notifications](https:
16
16
17
17
Iterable supports [CocoaPods](https://cocoapods.org) for easy installation. If you don't have it yet, please refer to the CocoaPods [Getting Started](https://guides.cocoapods.org/using/getting-started.html) guide for installation instructions.
18
18
19
-
To include the Iterable SDK in your project, edit the **Podfile** and add the **Iterable-iOS-SDK** pod to your app target:
19
+
To install the Iterable Swift SDK using CocoaPods:
20
20
21
-
```
22
-
pod 'Iterable-iOS-SDK'
23
-
```
21
+
- Edit your project's **Podfile** and add the **Iterable-iOS-SDK** pod to
22
+
your app target.
23
+
- If you'll be using media attachments on iOS push notifications, add the
24
+
**Iterable-iOS-AppExtensions** pod to your project's extension target.
24
25
25
-
If you want to include a Iterable Rich Notification Extension, you will also need to include the **Iterable-iOS-AppExtensions** pod in your extension target:
26
+
Example **Podfile**:
26
27
27
-
```
28
-
pod 'Iterable-iOS-AppExtensions'
29
-
```
28
+
```ruby
29
+
platform :ios, '11.0'
30
30
31
-
Please look at the included sample [**Podfile**](https://github.com/Iterable/swift-sdk/blob/master/sample-apps/swift-sample-app/Podfile?raw=true).
31
+
# You must include the following line for both Objective-C and Swift
32
+
# projects. If you cannot use this option for your target, install
@@ -226,7 +240,7 @@ See Apple's [UserNotifications framework](https://developer.apple.com/documentat
226
240
227
241
The Iterable iOS SDK provides an implementation that handles media attachments and action buttons:
228
242
229
-
1. Include `Iterable-iOS-AppExtensions` in your podfileas explained above.
243
+
1. Include `Iterable-iOS-AppExtensions` in your **Podfile**as explained above.
230
244
2. Create a new target of type notification service extensionin your Xcode project/solution.
231
245
3. If you are calling Iterable SDK from Swift, all you need to dois inherit the `NotificationService` class (auto generated by Xcode) from the `ITBNotificationServiceExtension` class. If you are using Objective-C, you will have to delegate to the provided implementation. See the example below:
0 commit comments