V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yuana1  ›  全部回复第 1 页 / 共 1 页
回复总数  1
看源代码
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
中显示

if ((notification.flags & Notification.FLAG_FOREGROUND_SERVICE) != 0
|| (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0
|| (notification.flags & Notification.FLAG_LOCAL_ONLY) != 0
|| (notification.flags & NotificationCompat.FLAG_GROUP_SUMMARY) != 0 //The notification that groups other notifications
)
{
//This is not a notification we want!
return;
}

第三行 显示 FLAG_LOCAL_ONLY 通知后直接舍弃了。 注释此行 重新打包就行了
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2388 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 01:36 · PVG 09:36 · LAX 17:36 · JFK 20:36
♥ Do have faith in what you're doing.