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

Commit 92199a6

Browse files
committed
prepare for 4.3.3 Fixes missing headers and additional sdk functions for updating and clearing the user session
1 parent 1ebfd9a commit 92199a6

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

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

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
@import Foundation;
1010
#import "CommerceItem.h"
1111
#import "IterableConstants.h"
12-
#import "IterableInAppManager.h"
1312

1413
// all params are nonnull, unless annotated otherwise
1514
NS_ASSUME_NONNULL_BEGIN
@@ -173,6 +172,14 @@ typedef NS_ENUM(NSInteger, PushServicePlatform) {
173172
*/
174173
+ (nullable IterableAPI *)sharedInstance;
175174

175+
/*!
176+
@method
177+
178+
@abstract Sets the previously instantiated singleton instance of the API to nil
179+
180+
*/
181+
+ (void)clearSharedInstance;
182+
176183
/////////////////////////////
177184
/// @name Registering a token
178185
/////////////////////////////
@@ -256,6 +263,20 @@ typedef NS_ENUM(NSInteger, PushServicePlatform) {
256263
*/
257264
- (void)disableDeviceForAllUsersWithOnSuccess:(OnSuccessHandler)onSuccess onFailure:(OnFailureHandler)onFailure;
258265

266+
/*!
267+
@method
268+
269+
@abstract Updates the available user fields
270+
271+
@param dataFields Data fields to store in the user profile
272+
@param mergeNestedObjects Merge top level objects instead of overwriting
273+
@param onSuccess OnSuccessHandler to invoke if disabling the token is successful
274+
@param onFailure OnFailureHandler to invoke if disabling the token fails
275+
276+
@see OnSuccessHandler
277+
@see OnFailureHandler
278+
*/
279+
- (void)updateUser:(NSDictionary *)dataFields mergeNestedObjects:(BOOL)mergeNestedObjects onSuccess:(OnSuccessHandler)onSuccess onFailure:(OnFailureHandler)onFailure;
259280

260281
/////////////////////////
261282
/// @name Tracking events

Artifacts/libIterable-iOS-SDK.a

-730 KB
Binary file not shown.

CHANGELOG.md

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

18+
## [4.3.3](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.3.3)
19+
#### Added
20+
- Added the `clearSharedInstance` function to reset the stored Iterable instance.
21+
- Added the `updateUser` function to add or modify user Fields.
22+
23+
#### Changed
24+
- Changed the `spawnInAppNotification` function to automatically consume messages from the user messages queue.
25+
26+
#### Fixed
27+
- Fixed missing header files for constants.
28+
1829
## [4.3.2](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.3.2)
1930
#### Added
2031
- Added the `inAppConsume` function to remove in-app messages from the user queue.

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.3.2"
19+
s.version = "4.3.3"
2020
s.summary = "Iterable's official SDK for iOS"
2121

2222
s.description = <<-DESC

README.md

Lines changed: 5 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.3.2/)
3+
[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/IterableSDK.svg?style=flat)](http://cocoadocs.org/docsets/IterableSDK/4.3.3/)
44

55
# Iterable iOS SDK
66

@@ -168,6 +168,10 @@ 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`. Using `spawnInAppNotification` the notification is consumed and removed from the user's in-app messages queue. If you want to retain the messages on the queue, look at using `getInAppMessages` directly. If you use `getInAppMessages` you will need to manage the in-app opens manually in the callback handler.
170170

171+
#### Tracking and Updating User Fields
172+
173+
Custom events can be tracked using the `track` function and user fields can be modified using the `updateUser` function.
174+
171175
#### Deeplinking
172176
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).
173177

0 commit comments

Comments
 (0)