可以参考下述demo:Button("打开通知设置").onClick(() => { let context: common.UIAbilityContext = getContext(this) as common.UIAbilityContext; let want: Want = { bundleName: 'com.huawei.hmos.settings', //设置应用bundleName abilityName: 'com.huawei.hmos.settings.MainAbility', //设置应用abilityName uri: "systemui_notification_settings", //通知管理页面 parameters: { pushParams: { bundleName: context.abilityInfo.bundleName//拉起方应用包名 } } } context.startAbility(want) })
可以参考下述demo: