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"
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.