Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 355836e

Browse files
committed
prepare for 4.3.0
1 parent bfaf75b commit 355836e

File tree

5 files changed

+50
-2
lines changed

5 files changed

+50
-2
lines changed

Artifacts/include/Iterable-iOS-SDK/IterableAPI.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,16 @@ typedef NS_ENUM(NSInteger, PushServicePlatform) {
514514
*/
515515
-(void) showSystemNotification:(NSString *)title body:(NSString *)body buttonLeft:(NSString *)buttonLeft buttonRight:(NSString *)buttonRight callbackBlock:(ITEActionBlock)callbackBlock;
516516

517+
/*!
518+
@method
519+
520+
@abstract tracks a link click and passes the redirected URL to the callback
521+
522+
@param webpageURL the URL that was clicked
523+
@param callbackBlock the callback to send after the webpageURL is called
524+
525+
@discussion passes the string of the redirected URL to the callback
526+
*/+(void) getAndTrackDeeplink:(NSURL *)webpageURL callbackBlock:(ITEActionBlock)callbackBlock;
517527

518528
@end
519529

Artifacts/libIterable-iOS-SDK.a

151 KB
Binary file not shown.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1515
#### Fixed
1616
- nothing yet
1717

18+
## [4.3.0](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.3.0)
19+
#### Added
20+
- added the `getAndTrackDeeplink` function to track links sent by Iterable and retrieves the destination deeplink url
21+
1822
## [4.2.0](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.2.0)
1923
#### Added
2024
- added support for In-App Notifications with different views layouts

IterableSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "IterableSDK"
19-
s.version = "4.2.0"
19+
s.version = "4.3.0"
2020
s.summary = "Iterable's official SDK for iOS"
2121

2222
s.description = <<-DESC

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![CocoaPods](https://img.shields.io/cocoapods/v/IterableSDK.svg?style=flat)](https://cocoapods.org/pods/IterableSDK)
22
[![License](https://img.shields.io/cocoapods/l/IterableSDK.svg?style=flat)](https://opensource.org/licenses/MIT)
3-
[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/IterableSDK.svg?style=flat)](http://cocoadocs.org/docsets/IterableSDK/4.2.0/)
3+
[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/IterableSDK.svg?style=flat)](http://cocoadocs.org/docsets/IterableSDK/4.3.0/)
44

55
# Iterable iOS SDK
66

@@ -168,6 +168,40 @@ To display the user's InApp notifications call `spawnInAppNotification` with a d
168168

169169
InApp opens and button clicks are automatically tracked when the notification is called via `spawnInAppNotification`.
170170

171+
#### Deeplinking
172+
You can setup your app to track email clicks and maintain deeplinking directly into your app with [iOS Universal Links] (https://support.iterable.com/hc/en-us/articles/115000440206).
173+
174+
From your application's [restorationHandler] (https://developer.apple.com/reference/uikit/uiapplicationdelegate/1623072-application) call `getAndTrackDeeplink` along with a callback to handle the original deeplink url.
175+
176+
177+
```swift
178+
<SWIFT>
179+
func application(_ application: UIApplication, continue userActivity: NSUserActivity,
180+
restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
181+
182+
IterableAPI.getAndTrackDeeplink(userActivity.webpageURL!, callbackBlock: {
183+
(originalURL) in
184+
//Handle Original URL deeplink here
185+
});
186+
return true
187+
}
188+
```
189+
190+
```objective-c
191+
<OBJECTIVE-C>
192+
- (BOOL)application:(UIApplication *)application
193+
continueUserActivity(NSUserActivity *)userActivity
194+
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {
195+
196+
ITEActionBlock callbackBlock = ^(NSString* originalURL) {
197+
//Handle Original URL deeplink here
198+
};
199+
[IterableAPI getAndTrackDeeplink:iterableLink callbackBlock:callbackBlock];
200+
201+
return true;
202+
}
203+
```
204+
171205
# Additional Information
172206
173207
See our [setup guide](http://support.iterable.com/hc/en-us/articles/204780589-Push-Notification-Setup-iOS-and-Android-) for more information.

0 commit comments

Comments
 (0)