---
name: "openSystemSettingPage"
mode: "kit"
versionRequirements:
  - { name: "BizKit", version: "3.0.0" }
platform:
  - "iOS"
  - "Android"
async: true
title: "ty.openSystemSettingPage"
---

## openSystemSettingPage

> [VERSION] BizKit >= 3.0.0

> [PLATFORM] iOS, Android

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

### Description

Note: Due to review/security risks, on iOS calling this method only opens the settings page of the current app; the following scopes are no longer supported. Depending on the scope value, opens the corresponding phone system settings screen "Settings" -> System settings home screen "Settings-Bluetooth" -> Bluetooth settings screen "Settings-WiFi" -> WiFi settings screen "Settings-Location" -> Location settings screen "Settings-Notification" -> Notification settings screen

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `scope` | `string` | Yes | - | `3.0.0` | Target system setting name "Settings" -> System settings home screen "Settings-Bluetooth" -> Bluetooth settings screen "Settings-WiFi" -> WiFi settings screen "Settings-Location" -> Location settings screen "Settings-Notification" -> Notification settings screen Target system App setting name "App-Settings" -> App settings page "App-Settings-Permission" -> App permission settings page (Android only) "App-Settings-Notification" -> App notification settings page (Android only) |
| `requestCode` | `number` | No | - | `3.0.0` | Request code, Android only |
| `complete` | `() => void` | No | - | - | Callback invoked when the API call completes (runs on success or failure) |
| `success` | `() => void` | No | - | - | Callback for successful API call |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Callback for failed API call |

#### fail callback parameters

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

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

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Error extension code |
| `errorMsg` | `string` | Error extension information |


### Examples

```tsx
ty.openSystemSettingPage({
  scope: "xx",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
