---
name: "isDeviceSupportOfflineReminder"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.2.0" }
platform:
  - "iOS"
  - "Android"
async: true
---

## isDeviceSupportOfflineReminder

> [VERSION] DeviceKit >= 2.2.0

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Whether the device supports offline alerts

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `deviceId` | `string` | Yes | - | `2.2.0` | deviceId Device ID |
| `complete` | `() => void` | No | - | - | Callback invoked when the API call completes (executed on success or failure) |
| `success` | `(params: Object) => void` ↓see below | No | - | - | Callback invoked when the API call succeeds |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Callback for API call failure |

#### success callback parameters

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `isSupport` | `boolean` | `3.3.0` | support Whether the device supports offline alerts |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extensions |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Extended error code |
| `errorMsg` | `string` | Extended error message |


### Examples

#### Demo

```tsx
ty.device.isDeviceSupportOfflineReminder({
  deviceId: "6ca3910474f71f05e1x9bv",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
