Skip to content

Commit addb97a

Browse files
committed
* Added a feature that sets a push notification template.
1 parent 88b5006 commit addb97a

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
### v3.0.25(Dec 23, 2016)
4+
* Added a feature that sets a push notification template.
5+
36
### v3.0.24(Dec 19, 2016)
47
* Fixed channel URL and user ID encoding bug.
58
* Fixed bug of creating group channel with distinct option.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![Platform](https://img.shields.io/badge/platform-iOS-orange.svg)](https://cocoapods.org/pods/SendBirdSDK)
55
[![Languages](https://img.shields.io/badge/language-Objective--C%20%7C%20Swift-orange.svg)](https://github.com/smilefam/sendbird-ios-framework)
6-
[![CocoaPods](https://img.shields.io/badge/pod-v3.0.24-green.svg)](https://cocoapods.org/pods/SendBirdSDK)
6+
[![CocoaPods](https://img.shields.io/badge/pod-v3.0.25-green.svg)](https://cocoapods.org/pods/SendBirdSDK)
77
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
88
[![Commercial License](https://img.shields.io/badge/license-Commercial-brightgreen.svg)](https://github.com/smilefam/sendbird-ios-framework/blob/master/LICENSE.md)
99

SendBirdSDK.framework/Headers/SBDMain.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,21 @@
373373
*/
374374
+ (void)getDoNotDisturbWithCompletionHandler:(nullable void (^)(BOOL isDoNotDisturbOn, int startHour, int startMin, int endHour, int endMin, NSString * _Nonnull timezone, SBDError * _Nullable error))completionHandler;
375375

376+
377+
/**
378+
Sets a push template of the current user.
379+
380+
@param name The name of push template. It can be `SBD_PUSH_TEMPLATE_DEFAULT` or `SBD_PUSH_TEMPLATE_ALTERNATIVE`.
381+
@param completionHandler The handler block to execute.
382+
*/
383+
+ (void)setPushTemplateWithName:(NSString * _Nonnull)name completionHandler:(nullable void (^)(SBDError * _Nullable error))completionHandler;
384+
385+
386+
/**
387+
Gets a push template of the current user.
388+
389+
@param completionHandler The handler block to execute. The `name` is the current user's push template.
390+
*/
391+
+ (void)getPushTemplateWithCompletionHandler:(nullable void (^)(NSString * _Nullable name, SBDError * _Nullable error))completionHandler;
392+
376393
@end

SendBirdSDK.framework/Headers/SBDTypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#define CHANNEL_TYPE_OPEN @"open"
1313
#define CHANNEL_TYPE_GROUP @"group"
1414

15+
#define SBD_PUSH_TEMPLATE_DEFAULT @"default"
16+
#define SBD_PUSH_TEMPLATE_ALTERNATIVE @"alternative"
1517

1618
/**
1719
* The order type for `SBDGroupChannelListQuery`.

SendBirdSDK.framework/SendBirdSDK

74.2 KB
Binary file not shown.

SendBirdSDK.podspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SendBirdSDK"
3-
s.version = "3.0.24"
3+
s.version = "3.0.25"
44
s.summary = "SendBird iOS Framework"
55
s.description = "Messaging and Chat API for Mobile Apps and Websites"
66
s.homepage = "https://sendbird.com"
@@ -12,5 +12,6 @@ Pod::Spec.new do |s|
1212
s.documentation_url = 'https://docs.sendbird.com/'
1313
s.ios.vendored_frameworks = 'SendBirdSDK.framework'
1414
s.ios.frameworks = ["UIKit", "QuartzCore", "CFNetwork", "Security", "Foundation", "MobileCoreServices"]
15-
s.ios.library = "icucore"
15+
#s.ios.library = "icucore"
16+
s.ios.libraries = ["icucore", "sqlite3"]
1617
end

0 commit comments

Comments
 (0)