一、通过弹窗点击设置跳转系统应用能力
1、 自定义弹窗效果图

2、 自定义弹窗代码
import { common, Want } from '@kit.AbilityKit';
import { BusinessError } from '@kit.BasicServicesKit';
export function alertDialog() {
AlertDialog.show({
title: '',
message: '当前功能依赖定位权限,拒绝授权将无法使用此功能。您可以在系统设置中打开定位权限,从而重新启用功能。',
autoCancel: true,
alignment: DialogAlignment.Bottom,
gridCount: 4,
offset: { dx: 0, dy: -20 },
primaryButton: {
value: '取消',
action: () => {
console.info('Callback when the first button is clicked')
}
},
secondaryButton: {
value: '设置',
action: () => {
console.info('Callback when the second button is clicked')
let wantInfo: Want = {
bundleName: 'com.huawei.hmos.settings',
abilityName: 'com.huawei.hmos.settings.Mai