製品の概要
Basic Concepts
ユースケース
機能概要
アカウントシステム
ユーザープロフィールとリレーションシップチェーン
メッセージ管理
グループシステム
Official Account
Audio/Video Call
使用制限
API | Description |
registerPush | Register push service (must call this API to use push service only after obtaining user consent for the privacy policy). |
unRegisterPush | Disable push service. |
addPushListener | Add a Push Listener. |
removePushListener | Remove a Push Listener. |
registerPush(options): Promise;
Parameter | Type | Description |
SDKAppID | Number | SDKAppID of the Push service. For reference: Quick Integration > Prerequisites > Enabling a Service to obtain SDKAppID. |
appKey | String | Client key of the Push service. For reference: Quick Integration > Prerequisites > Enabling a Service to obtain AppKey |
userID | String | Register the user's userID for push services. User's Unique Identifier, defined by you, can only include uppercase and lowercase letters (a-z, A-Z), digits (0-9), underscore, and hyphen. |
unRegisterPush(): Promise;
addPushListener(eventName: string, listener: (data: any) => void);
Parameter | Type | Description |
eventName | String | Push event type. WebPush.EVENT.MESSAGE_RECEIVED: new notification arrivalWebPush.EVENT.MESSAGE_REVOKED: notification recallWebPush.EVENT.NOTIFICATION_CLICKED: notification clicked |
listener | Function | Push event handling method. |
removePushListener(eventName: string, listener?: (data: any) => void);
Parameter | Type | Description |
eventName | String | Push event type. WebPush.EVENT.MESSAGE_RECEIVED: new notification arrivalWebPush.EVENT.MESSAGE_REVOKED: notification recallWebPush.EVENT.NOTIFICATION_CLICKED: notification clicked |
listener | Function | undefined | Push event handling method. |
フィードバック