Bug 484135

Summary: Framework for parsing notification content
Product: [Applications] kdeconnect Reporter: gudvinr+kde
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: wishlist CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gudvinr+kde 2024-03-21 07:46:45 UTC
SUMMARY

Many apps and services use authentication with one-time codes using phone messages and push notifications.
When you enable notification receiving, you can get notifications where you can copy code manually.
Also notifications might contain URLs which also need to be copied before use.

I suggest also adding framework for extracting meaningful data from notification and add this data as additional action button to notification.

E.g. when you get something like this:
"Authorization code from g0og1e.com: 123456"

In addition to "Mark as read" you get "Copy 123456".

And for message:
"Track package with FedEx/UPS/DPD/Whatever: https://tracking.org?id=ABCXYZ123"

You get button "Visit URL" that opens default browser at with "https://tracking.org?id=ABCXYZ123"
Comment 1 Simon Redman 2025-07-22 21:10:50 UTC
Moving to common path since this isn't particularly related to the messaging application.

Note that a limited version of this was added in https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/633 (will be released in 25.08) for copying OTPs when the "Copy XX" action is added.