Appearance
requestSubscribeMessage
▸ requestSubscribeMessage(options?): Promise<null | string[]>
调用订阅消息,无论用户是否授权订阅都进入 then,常用于一般情况 用户在「设置」中关闭「通知管理->接收通知」不抛出错误,此时返回值为 null
参数
| Name | Type |
|---|---|
options | Object |
options.subscriptionType | undefined | SUBSCRIPTION_TYPE |
options.tmplIds | string[] |
返回值
Promise<null | string[]>
返回用户成功订阅消息的 tmplIds。