Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

规格不一致,NotificationRequest所含参数,在HarmonyOS上没有适配对应参数 #4

@rjh520

Description

@rjh520

Feature Request

在HarmonyOS ohos.notificationManager NotificationRequest 下面参数没有

Why it is needed

需要处理一些特定的消息通知

Possible implementation

subtitle:推送消息的次要描述
repeats:是否设置重复通知
repeatsComponent:repeats为true时 指示应该重复 fireDate 的哪些部分
category:消息通知的类别
isCritical:为true,即使设备被锁定、静音或启用“请勿打扰”功能,也会播放通知声音
criticalSoundVolume:关键通知音量,0 到 1 之间的数字
isTimeZoneAgnostic:为true则 fireDate 会根据时区变化自动调整
fireDate:推送时间(oh deliveryTime 字段不生效,文档会补齐)
sound:推送声音(需要发邮件申请铃声)
harmony侧对应的接口需要提供以上参数

Code sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions