<table><tr><td style="">andyholmes added a comment.
</td></tr></table><br /><div><div><p>I might be late to this discussion, but I thought I'd weigh in since I've found a workable solution on the client-side for my gnome-shell extension.</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Since the Telephony event always precedes the Notification, I check in the Telephony plugin if the Notifications plugin is active.</li>
<li class="remarkup-list-item">If it is I add a match string such as <tt style="background: #ebebeb; font-size: 13px;">contactName/phoneNumber: messageBody</tt> or <tt style="background: #ebebeb; font-size: 13px;">Missed call: contactName/phoneNumber</tt> to a list in the Notifications plugin.</li>
<li class="remarkup-list-item">Then if a notification with a matching <tt style="background: #ebebeb; font-size: 13px;">title: text</tt> is received, I associate the packet->body->id with the match string, but don't post a notification locally (silence basically).</li>
<li class="remarkup-list-item">If a Telephony event is acknowledged or answered the Telephony plugin asks the Notification plugin to send a "close" packet for any duplicate that matches the string.</li>
</ul>

<p>There's a number of benefits to doing it this way:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">I get to keep the granularity of the Telephony events</li>
<li class="remarkup-list-item">don't have to keep a blacklist of application names that might get localised remotely</li>
<li class="remarkup-list-item">the Telephony events are "transient" but the Notifications aren't, so just like Android if the laptop/desktop is restarted without the event being acknowledged the notification will still be there</li>
<li class="remarkup-list-item">duplicated missedCall events are handled as well</li>
</ol>

<p>The only catches are the phrase "Missed call" must be translated to match Android's string and to make the Notification "actionable" requires either caching the incoming phoneNumber/contactName or integrating desktop contacts (ie GData/libfolks).</p></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T6651" rel="noreferrer">https://phabricator.kde.org/T6651</a></div></div><br /><div><strong>To: </strong>andyholmes<br /><strong>Cc: </strong>andyholmes, progwolff, albertvaka, dragoonaethis, KDE Connect, nicolasfella, SemperPeritus, ahmedbesbes, daniel.z.tg, jeanv, tfella, aboudhar, seebauer, bugzy, MayeulC, menasshock, ach, apol<br /></div>