Skip to content

Commit

Permalink
Pushwoosh iOS SDK 5.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI committed Dec 3, 2019
1 parent 6fb830c commit 67ec266
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 19 deletions.
66 changes: 49 additions & 17 deletions Documentation/PWInbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<td><a href="#1a3615207158c38bbbe75e81143767c043">+ (void)removeObserver:(id&lt;NSObject&gt;)observer</a></td>
</tr>
<tr>
<td><a href="#1a90ef7fc82a22f7d5a119365ae3bd949c">+ (void)readMessagesWithCodes:(NSArray&lt;NSString *&gt; *)codes</a></td>
<td><a href="#1ab9ee5b2d0b0aa052e493222ae0458399">+ (void)performActionForMessageWithCode:(NSString *)code</a></td>
</tr>
<tr>
<td><a href="#1ab73de8dcd7da0865e760d89a2d719fcd">+ (void)unreadMessagesCountWithCompletion:(void(^)(NSInteger count, NSError *error))completion</a></td>
Expand All @@ -20,10 +20,10 @@
<td><a href="#1ad53335832b0ed698057fc89eca4837ed">+ (void)loadMessagesWithCompletion:(void(^)(NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messages, NSError *error))completion</a></td>
</tr>
<tr>
<td><a href="#1a8b76d820c4effcaa3440c4a29ce6fdec">+ (void)messagesWithNoActionPerformedCountWithCompletion:(void(^)(NSInteger count, NSError *error))completion</a></td>
<td><a href="#1a90ef7fc82a22f7d5a119365ae3bd949c">+ (void)readMessagesWithCodes:(NSArray&lt;NSString *&gt; *)codes</a></td>
</tr>
<tr>
<td><a href="#1ab9ee5b2d0b0aa052e493222ae0458399">+ (void)performActionForMessageWithCode:(NSString *)code</a></td>
<td><a href="#1a8b76d820c4effcaa3440c4a29ce6fdec">+ (void)messagesWithNoActionPerformedCountWithCompletion:(void(^)(NSInteger count, NSError *error))completion</a></td>
</tr>
<tr>
<td><a href="#1a9a2fdeec674758b710289247308da16a">+ (void)deleteMessagesWithCodes:(NSArray&lt;NSString *&gt; *)codes</a></td>
Expand All @@ -32,7 +32,13 @@
<td><a href="#1adf914d8ad61b9a37eedba055e123a87a">+ (id&lt;NSObject&gt;)addObserverForDidReceiveInPushNotificationCompletion:(void(^)(NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesAdded))completion</a></td>
</tr>
<tr>
<td><a href="#1a4656f325ad40d164ba94bb66ef1c2034">+ (id&lt;NSObject&gt;)addObserverForUpdateInboxMessagesCompletion:(void(^)(NSArray&lt;NSString *&gt; *messagesDeleted, NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesAdded, NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesUpdated))completion</a></td>
<td><a href="#1a8dd9025d3506e9e457fe68a7fc659d9f">+ (id&lt;NSObject&gt;)addObserverForUpdateInboxMessagesCompletion:(void(^)(NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesDeleted, NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesAdded, NSArray&lt;NSObject&lt;PWInboxMessageProtocol&gt; *&gt; *messagesUpdated))completion</a></td>
</tr>
<tr>
<td><a href="#1a48977a9207f07bd13f6498987fc9ffa1">+ (id&lt;NSObject&gt;)addObserverForUnreadMessagesCountUsingBlock:(void(^)(NSUInteger count))block</a></td>
</tr>
<tr>
<td><a href="#1ae93eafaaf71e319a0bee022d547a5816">+ (id&lt;NSObject&gt;)addObserverForNoActionPerformedMessagesCountUsingBlock:(void(^)(NSUInteger count))block</a></td>
</tr>
<tr>
<td><a href="#1a4880d842d17260527577455f39107652">- (instancetype)init</a></td>
Expand All @@ -56,12 +62,12 @@ Unsubscribes from notifications<br/><br/><br/><strong>Parameters</strong><br/>
----------


#### <a name="1a90ef7fc82a22f7d5a119365ae3bd949c"></a>+ (void)readMessagesWithCodes:(NSArray&lt;NSString \*&gt; \*)codes
Call this method to mark the list of InboxMessageProtocol as read<br/><br/><br/><strong>Parameters</strong><br/>
#### <a name="1ab9ee5b2d0b0aa052e493222ae0458399"></a>+ (void)performActionForMessageWithCode:(NSString \*)code
Call this method, when the user clicks on the InboxMessageProtocol and the message’s action is performed<br/><br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>codes</strong></td>
<td>of the inboxMessages </td>
<td><strong>code</strong></td>
<td>of the inboxMessage that the user tapped </td>
</tr>
</table>

Expand Down Expand Up @@ -108,25 +114,25 @@ Get the collection of the PWInboxMessageProtocol that the user received<br/><br/
----------


#### <a name="1a8b76d820c4effcaa3440c4a29ce6fdec"></a>+ (void)messagesWithNoActionPerformedCountWithCompletion:(void(^)(NSInteger count, NSError \*error))completion
Get the number of the PWInboxMessageProtocol with no action performed<br/><br/><br/><strong>Parameters</strong><br/>
#### <a name="1a90ef7fc82a22f7d5a119365ae3bd949c"></a>+ (void)readMessagesWithCodes:(NSArray&lt;NSString \*&gt; \*)codes
Call this method to mark the list of InboxMessageProtocol as read<br/><br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>completion</strong></td>
<td>- if successful, return the number of the InboxMessages with no action performed. Otherwise, return error </td>
<td><strong>codes</strong></td>
<td>of the inboxMessages </td>
</tr>
</table>


----------


#### <a name="1ab9ee5b2d0b0aa052e493222ae0458399"></a>+ (void)performActionForMessageWithCode:(NSString \*)code
Call this method, when the user clicks on the InboxMessageProtocol and the message’s action is performed<br/><br/><br/><strong>Parameters</strong><br/>
#### <a name="1a8b76d820c4effcaa3440c4a29ce6fdec"></a>+ (void)messagesWithNoActionPerformedCountWithCompletion:(void(^)(NSInteger count, NSError \*error))completion
Get the number of the PWInboxMessageProtocol with no action performed<br/><br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>code</strong></td>
<td>of the inboxMessage that the user tapped </td>
<td><strong>completion</strong></td>
<td>- if successful, return the number of the InboxMessages with no action performed. Otherwise, return error </td>
</tr>
</table>

Expand Down Expand Up @@ -160,7 +166,7 @@ Subscribe for messages arriving with push notifications. warning You need to uns
----------


#### <a name="1a4656f325ad40d164ba94bb66ef1c2034"></a>+ (id&lt;NSObject&gt;)addObserverForUpdateInboxMessagesCompletion:(void(^)(NSArray&lt;NSString \*&gt; \*messagesDeleted, NSArray&lt;NSObject&lt;<a href="PWInboxMessageProtocol-p.md">PWInboxMessageProtocol</a>&gt; \*&gt; \*messagesAdded, NSArray&lt;NSObject&lt;<a href="PWInboxMessageProtocol-p.md">PWInboxMessageProtocol</a>&gt; \*&gt; \*messagesUpdated))completion
#### <a name="1a8dd9025d3506e9e457fe68a7fc659d9f"></a>+ (id&lt;NSObject&gt;)addObserverForUpdateInboxMessagesCompletion:(void(^)(NSArray&lt;NSObject&lt;<a href="PWInboxMessageProtocol-p.md">PWInboxMessageProtocol</a>&gt; \*&gt; \*messagesDeleted, NSArray&lt;NSObject&lt;<a href="PWInboxMessageProtocol-p.md">PWInboxMessageProtocol</a>&gt; \*&gt; \*messagesAdded, NSArray&lt;NSObject&lt;<a href="PWInboxMessageProtocol-p.md">PWInboxMessageProtocol</a>&gt; \*&gt; \*messagesUpdated))completion
Subscribe for messages arriving when a message is deleted, added, or updated. warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications<br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
Expand All @@ -173,4 +179,30 @@ Subscribe for messages arriving when a message is deleted, added, or updated. wa
----------


#### <a name="1a48977a9207f07bd13f6498987fc9ffa1"></a>+ (id&lt;NSObject&gt;)addObserverForUnreadMessagesCountUsingBlock:(void(^)(NSUInteger count))block
Subscribe for unread messages count changes. warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications<br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>block</strong></td>
<td>- return the count of unread messages. </td>
</tr>
</table>


----------


#### <a name="1ae93eafaaf71e319a0bee022d547a5816"></a>+ (id&lt;NSObject&gt;)addObserverForNoActionPerformedMessagesCountUsingBlock:(void(^)(NSUInteger count))block
Subscribe for messages with no action performed count changes. warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications<br/><br/><strong>Parameters</strong><br/>
<table>
<tr>
<td><strong>block</strong></td>
<td>- return the count of unread messages. </td>
</tr>
</table>


----------


#### <a name="1a4880d842d17260527577455f39107652"></a>- (instancetype)init
16 changes: 15 additions & 1 deletion Framework/Pushwoosh.framework/Versions/A/Headers/PWInbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,24 @@ typedef NS_ENUM(NSInteger, PWInboxMessageType) {
@param completion - return the collection of the InboxMessages.
*/
+ (id<NSObject>)addObserverForUpdateInboxMessagesCompletion:(void (^)(NSArray<NSString *> *messagesDeleted,
+ (id<NSObject>)addObserverForUpdateInboxMessagesCompletion:(void (^)(NSArray<NSObject<PWInboxMessageProtocol> *> *messagesDeleted,
NSArray<NSObject<PWInboxMessageProtocol> *> *messagesAdded,
NSArray<NSObject<PWInboxMessageProtocol> *> *messagesUpdated))completion;

/**
Subscribe for unread messages count changes. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
@param block - return the count of unread messages.
*/
+ (id<NSObject>)addObserverForUnreadMessagesCountUsingBlock:(void (^)(NSUInteger count))block;

/**
Subscribe for messages with no action performed count changes. @warning You need to unsubscribe by calling the removeObserver method, if you don't want to receive notifications
@param block - return the count of unread messages.
*/
+ (id<NSObject>)addObserverForNoActionPerformedMessagesCountUsingBlock:(void (^)(NSUInteger count))block;

/**
Unsubscribes from notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#import <UserNotifications/UserNotifications.h>
#endif

#define PUSHWOOSH_VERSION @"5.19.6"
#define PUSHWOOSH_VERSION @"5.20.0"


@class PushNotificationManager;
Expand Down
Binary file modified Framework/Pushwoosh.framework/Versions/A/Pushwoosh
Binary file not shown.
Binary file modified Framework/PushwooshBeacons.framework/Versions/A/PushwooshBeacons
Binary file not shown.
Binary file modified Framework/PushwooshGeozones.framework/Versions/A/PushwooshGeozones
Binary file not shown.

0 comments on commit 67ec266

Please sign in to comment.