1、使用isNotificationEnabled接口可以获取是否开起了通知栏权限;参考链接如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-notificationmanager-V5\#notificationmanagerisnotificationenabled2、申请(requestEnableNotification),详见《用户通知服务》:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/notification-enable-V5
1、使用isNotificationEnabled接口可以获取是否开起了通知栏权限;参考链接如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-notificationmanager-V5\#notificationmanagerisnotificationenabled
2、申请(requestEnableNotification),详见《用户通知服务》:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/notification-enable-V5