Bug 484135 - Framework for parsing notification content
Summary: Framework for parsing notification content
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 07:46 UTC by gudvinr+kde
Modified: 2025-07-22 21:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.