yuana1 最近的时间轴更新
yuana1

yuana1

V2EX 第 474129 号会员,加入于 2020-03-04 19:24:47 +08:00
yuana1 最近回复了
2020-03-06 16:33:02 +08:00
回复了 kevinhwang 创建的主题 Linux 有用 KDE Connect(GSConnect )的老哥知道怎么接收微信通知吗?
看源代码
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   ·   我们的愿景   ·   实用小工具   ·   4770 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 50ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.