# getAppSubscribeNotifyStatus

> 获取APP订阅通知状态

### getAppSubscribeNotifyStatus

> 获取 APP 订阅通知状态

#### 请求参数

| 参数       | 类型                          | 必填 | 说明     |
| ---------- | ----------------------------- | ---- | -------- |
| `success`  | `(res: { enabled: 0 | 1 }) => void` | 否   | 成功回调 |
| `fail`     | `(error: BridgeCode) => void` | 否   | 失败回调 |
| `complete` | `() => void`                  | 否   | 完成回调 |

#### 返回值

```js
Promise<{ enabled: 0 | 1 }>
```

`enabled` 含义：`1` 开启，`0` 关闭。

#### 示例代码

```js
import { getAppSubscribeNotifyStatus } from '@kbapp/js-bridge'

getAppSubscribeNotifyStatus({
    success(res) {
        console.log('订阅通知状态', res.enabled)
    },
    fail(error) {
        console.log('获取状态失败', error)
    },
})
```

> 支持 Promise 风格调用
