使用notifycationManager.publish时报错“message is Notification is not enabled”

使用notifycationManager.publish时报错:“Failed to publish notification. Code is 1600004, message is Notification is not enabled”。

HarmonyOS
2024-01-30 19:07:04
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
justtouch

应用的通知开关为关闭状态,当通知开关为关闭状态时,方法将返回该错误码。

通知设置里开启应用通知开关。

分享
微博
QQ
微信
回复
2024-01-31 23:29:50
相关问题
冷启动报错Error message
62浏览 • 1回复 待解决
拉起UIAbility时报错16000050
241浏览 • 1回复 待解决
The Map permission is not enabled
186浏览 • 1回复 待解决
app启动crash报错Error message:MainPage:
52浏览 • 1回复 待解决
OLED 屏幕输出编译时报错问题
8545浏览 • 2回复 待解决
webview打开地址时报错 怎么回事啊?
3652浏览 • 1回复 待解决
控件enabled设置为false时,hover失效
277浏览 • 1回复 待解决
使用fetch报错,fetch undefined
5495浏览 • 2回复 待解决
多模块应用使用startAbility报错
243浏览 • 1回复 待解决