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

Commit 65b3997

Browse files
committed
Prepare for 4.3.2 Fixes character encoding for GET request
1 parent 0796377 commit 65b3997

File tree

6 files changed

+29
-15
lines changed

6 files changed

+29
-15
lines changed

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,23 +467,29 @@ typedef NS_ENUM(NSInteger, PushServicePlatform) {
467467
468468
@abstract Tracks a InAppOpen event with custom completion blocks
469469
470-
@param campaignId The campaignId of the notification
471-
@param templateId The templateId of the notification
472470
@param messageId The messageId of the notification
473471
*/
474-
- (void)trackInAppOpen:(NSNumber *)campaignId templateId:(NSNumber *)templateId messageId:(NSString *)messageId;
472+
- (void)trackInAppOpen:(NSString *)messageId;
475473

476474
/**
477475
@method
478476
479-
@abstract Tracks a inAppClick event with custom completion blocks
477+
@abstract Tracks a inAppClick event
480478
481-
@param campaignId The campaignId of the notification
482-
@param templateId The templateId of the notification
483479
@param messageId The messageId of the notification
484480
@param buttonIndex The index of the button that was clicked
485481
*/
486-
- (void)trackInAppClick:(NSNumber *)campaignId templateId:(NSNumber *)templateId messageId:(NSString *)messageId buttonIndex:(NSNumber *)buttonIndex;
482+
- (void)trackInAppClick:(NSString *)messageId buttonIndex:(NSNumber *)buttonIndex;
483+
484+
/**
485+
@method
486+
487+
@abstract Consumes the notification and removes it from the list of inAppMessages
488+
489+
@param messageId The messageId of the notification
490+
*/
491+
- (void)inAppConsume:(NSString *)messageId;
492+
487493

488494
/*!
489495
@method

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// IterableNotification.h
2+
// IterableNotificationMetadata.h
33
// Iterable-iOS-SDK
44
//
55
// Created by Ilya Brin on 6/7/16.
@@ -62,15 +62,13 @@ NS_ASSUME_NONNULL_BEGIN
6262
6363
@abstract Creates an `IterableNotificationMetadata` from a inApp notification
6464
65-
@param campaignId The notification campaignId
66-
@param templateId The notification templateId
6765
@param messageId The notification messageId
6866
6967
@return an instance of `IterableNotificationMetadata` with the specified properties; `nil` if this is not a valid InApp notification
7068
71-
@warning `metadataFromInAppOptions` will return `nil` if campaignId or templateId is nil
69+
@warning `metadataFromInAppOptions` will return `nil` if messageId is nil
7270
*/
73-
+ (nullable instancetype)metadataFromInAppOptions:(NSNumber *)campaignId templateId:(NSNumber *)templateId messageId:(NSString *)messageId;
71+
+ (nullable instancetype)metadataFromInAppOptions:(NSString *)messageId;
7472

7573
///////////////////////////
7674
/// @name Utility functions

Artifacts/libIterable-iOS-SDK.a

14.4 KB
Binary file not shown.

CHANGELOG.md

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

18+
## [4.3.2](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.3.2)
19+
#### Added
20+
- Added the `inAppConsume` function to remove in-app messages from the user queue.
21+
22+
#### Changed
23+
- Changed the `spawnInAppNotification` function to automatically consume messages from the user messages queue.
24+
25+
#### Fixed
26+
- Fixed url query string parameter encoding for get requests.
27+
1828
## [4.3.1](https://github.com/Iterable/iterable-ios-sdk/releases/tag/4.3.1)
1929
#### Fixed
2030
- Fixed rendering of In-App notification to be on top of other views.

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

2222
s.description = <<-DESC

README.md

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

55
# Iterable iOS SDK
66

@@ -166,7 +166,7 @@ In order to re-enable push notifcations to that device, simply call `registerTok
166166
#### InApp Notifications
167167
To display the user's InApp notifications call `spawnInAppNotification` with a defined `ITEActionBlock` callback handler. When a user clicks a button on the notification, the defined handler is called and passed the action name defined in the InApp template.
168168

169-
InApp opens and button clicks are automatically tracked when the notification is called via `spawnInAppNotification`.
169+
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

171171
#### Deeplinking
172172
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).

0 commit comments

Comments
 (0)