Alarm notification
Jiří Wolker
woljiri at gmail.com
Tue Aug 24 14:01:47 BST 2021
> On Tuesday, 24 August 2021 10:05:43 BST Jiří Wolker wrote:
>> On 24. 08. 21 9:32, Ianseeks wrote:> Is there anyway I can get a
>> notification on my desktop when the alarm on my phone activates (android
>> 8)? I get a notification to say that its been set up and thats the end
>> of it.
>>
>> Hi,
>>
>> AFAIK, there is not such feature. I have found 3 methods to get alarm
>> notifications implemented. All of them have some limitations.
>
> Thanks for the update, shame its so difficult.
>
> A question:
> As there is a notification to say that there is an alarm set at a
specific time, the correct info is sent to the desktop.
> Could there be a config item in the desktop kdeconnect settings for
"Alarm" where you specify a local program (eg. kalarm) with a
> time parameter that sets the alarm locally?
That's the third method mentioned in my message. Android notifications
do not provide many metadata. It would require parsing the notification
text. That means having some code that “reads” the notification text and
outputs the time and alarm name. And because the notification text is
different for every Android system language, it would have to be able to
process all such variants of alarm notification. And it is even worse:
Android system updates (or device manufacturer's modifications) can
change the text, and that would break the functionality.
So, it is possible to solve, but it would be very sensitive to changes
in Android UI.
See the end of my original message:
>> ---[snip]---
>>
>> Parsing the ongoing alarm notifications
>> ───────────────────────────────────────
>>
>> KDEConnect app is able to read the notifications and it could parse it
>> and provide information about alarms. That would be possible, but even
>> subtle modification of notification text (done by manufacturer's
>> modifications, by update etc.) would break it.
>>
>> → Breaks easily, but provides metadata and alarm information *before*
>> the alarm rings.
>>
>> ---[snip]---
More information about the KDEConnect
mailing list