forked from Blendman974/faceclaw
Add support for embedded icons and custom layouts in Android notifications
The practical upshot of this is that gmail, messages and similar apps show the sender's profile picture on the glasses, the Dexcom app shows a
This commit is contained in:
1 parent
032fc307e9
commit
032797f0f6
10 files changed
+633
-93
No files matched your search
@@ -244,8 +244,8 @@ function formatEvent(event: CalendarEvent): string {
|
||||
return `- ${event.title || "(untitled)"} — ${when}${location}`;
|
||||
}
|
||||
|
||||
function formatNotification(notification: { key: string; appName: string; title: string; text: string }): string {
|
||||
const title = notification.title || "(no title)";
|
||||
function formatNotification(notification: { key: string; appName: string; title: string; text: string; customText?: string[] }): string {
|
||||
const title = notification.title || notification.customText?.join(" ") || "(no title)";
|
||||
const body = notification.text ? `: ${notification.text}` : "";
|
||||
return `- [${notification.appName}] ${title}${body} (key: ${notification.key})`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user