Skip to content

Commit 89b2a75

Browse files
committed
* Added unique option to push registration.
1 parent 4c03e6b commit 89b2a75

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-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.22(Dec 16, 2016)
4+
* Added `unique` option to push registration.
5+
36
### v3.0.21(Dec 6, 2016)
47
* Fixed bug of unread message count of group channel.
58
* Added `isPushEnabled` property to `SBDGroupChannel` in order to represent the push notification configuration.

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.21-green.svg)](https://cocoapods.org/pods/SendBirdSDK)
6+
[![CocoaPods](https://img.shields.io/badge/pod-v3.0.22-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: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,24 @@
277277
*/
278278
+ (nullable NSData *)getPendingPushToken;
279279

280+
/**
281+
* Registers the current device token to SendBird.
282+
*
283+
* @param devToken Device token for APNS.
284+
* @param unique If YES, register device token after removing exsiting all device tokens of the current user. If NO, just add the device token.
285+
* @param completionHandler The handler block to execute. `status` is the status for push token registration. It is defined in `SBDPushTokenRegistrationStatus`. `SBDPushTokenRegistrationStatusSuccess` represents the `devToken` is registered. `SBDPushTokenRegistrationStatusPending` represents the `devToken` is not registered because the connection is not established, so this method has to be invoked with `getPendingPushToken` method after the connection. The `devToken` is retrived by `getPendingPushToken`. `SBDPushTokenRegistrationStatusError` represents the push token registration is failed.
286+
*/
287+
+ (void)registerDevicePushToken:(NSData * _Nonnull)devToken unique:(BOOL)unique completionHandler:(nullable void (^)(SBDPushTokenRegistrationStatus status, SBDError * _Nullable error))completionHandler;
288+
280289
/**
281290
* Registers the current device token to SendBird.
282291
*
283292
* @param devToken Device token for APNS.
284293
* @param completionHandler The handler block to execute. `status` is the status for push token registration. It is defined in `SBDPushTokenRegistrationStatus`. `SBDPushTokenRegistrationStatusSuccess` represents the `devToken` is registered. `SBDPushTokenRegistrationStatusPending` represents the `devToken` is not registered because the connection is not established, so this method has to be invoked with `getPendingPushToken` method after the connection. The `devToken` is retrived by `getPendingPushToken`. `SBDPushTokenRegistrationStatusError` represents the push token registration is failed.
294+
*
295+
* @deprecated in 3.0.22
285296
*/
286-
+ (void)registerDevicePushToken:(NSData * _Nonnull)devToken completionHandler:(nullable void (^)(SBDPushTokenRegistrationStatus status, SBDError * _Nullable error))completionHandler;
297+
+ (void)registerDevicePushToken:(NSData * _Nonnull)devToken completionHandler:(nullable void (^)(SBDPushTokenRegistrationStatus status, SBDError * _Nullable error))completionHandler DEPRECATED_ATTRIBUTE;
287298

288299
/**
289300
* Registers the current device token to SendBird.

SendBirdSDK.framework/Info.plist

0 Bytes
Binary file not shown.

SendBirdSDK.framework/SendBirdSDK

10.7 KB
Binary file not shown.

SendBirdSDK.podspec

Lines changed: 1 addition & 1 deletion
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.21"
3+
s.version = "3.0.22"
44
s.summary = "SendBird iOS Framework"
55
s.description = "Messaging and Chat API for Mobile Apps and Websites"
66
s.homepage = "https://sendbird.com"

0 commit comments

Comments
 (0)