Skip to content

Commit e23cb5a

Browse files
committed
1.7.2
1 parent 462005f commit e23cb5a

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

CHANGELOG.md

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

3+
### 1.7.2 (October 8, 2021 UTC)
4+
* Added push token registration APIs
5+
* Below methods are added in `SendBirdCall`
6+
* `registerPushToken(pushToken: string, tokenType: TokenType): Promise<void>`
7+
* `unregisterPushToken(pushToken: string, tokenType: TokenType): Promise<void>`
8+
* `unregisterAllPushTokens(tokenType: TokenType): Promise<void>`
9+
* Below enum is added in `SendBirdCall`
10+
* `TokenType`
11+
312
### 1.7.1 (July 21, 2021 UTC)
413
* Bug fix
514
* Fixed the bug that `audioEnabled` and `videoEnabled` in `DirectCallOption` doesn't work.

SendBirdCall.min.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** 1.7.1 */
1+
/** 1.7.2 */
22
// eslint-disable-next-line no-undef,max-classes-per-file
33
export as namespace SendBirdCall;
44

@@ -40,6 +40,9 @@ export function createRoom(params: RoomParams): Promise<Room>;
4040
export function getCachedRoomById(roomId: string): Room;
4141
export function fetchRoomById(roomId: string): Promise<Room>;
4242
export function createRoomListQuery(params: RoomListQueryParams): RoomListQuery;
43+
export function registerPushToken(pushToken: string, tokenType: TokenType);
44+
export function unregisterPushToken(pushToken: string, tokenType: TokenType);
45+
export function unregisterAllPushTokens(tokenType: TokenType);
4346
export const sdkVersion: string;
4447
export const appId: string;
4548
export const currentUser: User;
@@ -88,6 +91,11 @@ export enum DirectCallEndResult {
8891
UNKNOWN = 'unknown'
8992
}
9093

94+
export enum TokenType {
95+
APNS = 'apns_voip',
96+
FCM = 'fcm_voip',
97+
}
98+
9199
export enum ErrorCode {
92100
// Call
93101
DIAL_CANCELED= 1800100,

SendBirdCall.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"authors": [
55
"SendBird <[email protected]>"
66
],

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "SendBird Calls JavaScript SDK",
55
"main": "SendBirdCall.min.js",
66
"types": "SendBirdCall.min.d.ts",

0 commit comments

Comments
 (0)