Add maskable icons for better iOS/Android PWA appearance (#473)
### Description I've added maskable icons to the selection of app icons. Maskable icons are designed to be cropped into any shape, like on various Android launchers, and this distinction additionally makes them work well on iOS. Here is a screenshot for comparison, with the new icon on the left : <img width="522" height="323" alt="image" src="https://github.com/user-attachments/assets/a647c9a3-c2cf-4f8a-8fee-5a5c15829be5" /> In the process of doing this, I've adjusted the structure of the directories containing the app icons (they are no longer sorted by Android/Apple, since any platform can pull from either format under different circumstances). On that note, it looks like many of the resolutions could probably be pruned... I kept all of the existing ones, though. I've also removed the dots from the paths in the HTML file, since this was causing major issues in the `dev` run. I haven't been able to do a proper build and test by hosting the /dist folder, so if this does break anything in that scenario, I can revert that change. I've tested this to completion on Linux and iOS so far, and I will edit this part as I test more platforms (assuming it isn't merged by then). - [ ] Android: Seems to work; a bit stretched, though? Edge might just be bad at making PWAs. Should try more browsers. - [ ] Windows: - [ ] macOS: - [ ] iPadOS: #### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: minor
|
||||
---
|
||||
|
||||
Add Android/iOS PWA-specific icon variants.
|
||||
@@ -35,55 +35,86 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
|
||||
<link rel="apple-touch-icon" href="./public/res/svg/cinny-logo-maskable.svg" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="36x36"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-36x36.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="48x48"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-48x48.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="57x57"
|
||||
href="./public/res/apple/apple-touch-icon-57x57.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-57x57.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="60x60"
|
||||
href="./public/res/apple/apple-touch-icon-60x60.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-60x60.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="72x72"
|
||||
href="./public/res/apple/apple-touch-icon-72x72.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-72x72.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="76x76"
|
||||
href="./public/res/apple/apple-touch-icon-76x76.png"
|
||||
sizes="96x96"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-96x96.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="114x114"
|
||||
href="./public/res/apple/apple-touch-icon-114x114.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-114x114.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="120x120"
|
||||
href="./public/res/apple/apple-touch-icon-120x120.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-120x120.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="144x144"
|
||||
href="./public/res/apple/apple-touch-icon-144x144.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-144x144.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="152x152"
|
||||
href="./public/res/apple/apple-touch-icon-152x152.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-152x152.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="167x167"
|
||||
href="./public/res/apple/apple-touch-icon-167x167.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-167x167.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="./public/res/apple/apple-touch-icon-180x180.png"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-180x180.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="192x192"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-192x192.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="256x256"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-256x256.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="384x384"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-384x384.png"
|
||||
/>
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="512x512"
|
||||
href="./public/res/logo-maskable/cinny-logo-maskable-512x512.png"
|
||||
/>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -11,49 +11,166 @@
|
||||
"theme_color": "#1b1a21",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./public/android/android-chrome-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image/png"
|
||||
"src": "./public/svg/cinny-logo-maskable.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "./public/android/android-chrome-512x512.png",
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-180x180.png",
|
||||
"sizes": "180x180",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-167x167.png",
|
||||
"sizes": "167x167",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-152x152.png",
|
||||
"sizes": "152x152",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-120x120.png",
|
||||
"sizes": "120x120",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-114x114.png",
|
||||
"sizes": "114x114",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-76x76.png",
|
||||
"sizes": "76x76",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-60x60.png",
|
||||
"sizes": "60x60",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-57x57.png",
|
||||
"sizes": "57x57",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo-maskable/cinny-logo-maskable-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "./public/svg/cinny-logo.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "./public/logo/cinny-logo-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 794 B |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="2451.377"
|
||||
height="2451.377"
|
||||
viewBox="0 0 2451.377 2451.377"
|
||||
version="1.1"
|
||||
xml:space="preserve"
|
||||
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5"
|
||||
id="svg2"
|
||||
sodipodi:docname="apple-touch-icon.svg"
|
||||
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="0.47932245"
|
||||
inkscape:cx="1225.6885"
|
||||
inkscape:cy="1380.0731"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1377"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" /><defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
inkscape:label="background"
|
||||
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;display:inline"
|
||||
transform="translate(-4.9778005e-6)"><rect
|
||||
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;fill:#1a1c28;stroke-width:1.00157"
|
||||
id="rect1"
|
||||
width="2530.6555"
|
||||
height="2539.0002"
|
||||
x="-58.415791"
|
||||
y="-66.760902"
|
||||
transform="translate(4.9778005e-6)" /></g><g
|
||||
id="Layer1"
|
||||
style="display:inline"
|
||||
transform="translate(-91.78964,-37.013267)">
|
||||
|
||||
<g
|
||||
transform="matrix(4.26739,0,0,4.26739,-3874.25,-3551.54)"
|
||||
id="g2">
|
||||
<path
|
||||
d="m 1048.38,1342.19 c -121.447,14.2738 -231.68198,2.0248 -231.68198,-84.6652 0,-13.91 61.20018,-117.1054 130.63298,-169.8648 25.029,-16.21 47.575,-28.28 68.139,-42.84 38.87,-27.54 38.87,-87.474 115.01,-87.474 58.31,0 79,37.463 129.58,69.654 35.6,22.65 92.2,13.47 226.32,85.85 l 0.01,0.08 c -139.04,-51.92 -221.72,-53.49 -237.67,-50.3 -32.39,6.48 -92.02,49.61 -83.44,140.17 6.14,64.88 -39.29,124.88 -116.9,139.39 z m 105.61,-358.258 c -9.78,0 -17.72,7.939 -17.72,17.718 0,9.78 7.94,17.72 17.72,17.72 9.77,0 17.71,-7.94 17.71,-17.72 0,-9.779 -7.94,-17.718 -17.71,-17.718 z"
|
||||
style="fill:#ad9eff;fill-opacity:1"
|
||||
id="path1" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -3,7 +3,7 @@ import { Box, Text, IconButton, Icon, Icons, Scroll, Button, config, toRem, Spin
|
||||
import { Page, PageContent, PageHeader } from '$components/page';
|
||||
import { SequenceCard } from '$components/sequence-card';
|
||||
import { SettingTile } from '$components/setting-tile';
|
||||
import CinnySVG from '$public/res/svg/cinny.svg';
|
||||
import CinnySVG from '$public/res/svg/cinny-logo.svg';
|
||||
import { clearCacheAndReload } from '$client/initMatrix';
|
||||
import { useMatrixClient } from '$hooks/useMatrixClient';
|
||||
import { SequenceCardStyle } from '$features/settings/styles.css';
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
import { NotificationType, StateEvent } from '$types/matrix/room';
|
||||
import { createLogger } from '$utils/debug';
|
||||
import { createDebugLogger } from '$utils/debugLogger';
|
||||
import LogoSVG from '$public/res/svg/cinny.svg';
|
||||
import LogoSVG from '$public/res/svg/cinny-logo.svg';
|
||||
import { nicknamesAtom } from '$state/nicknames';
|
||||
import {
|
||||
buildRoomMessageNotification,
|
||||
|
||||
@@ -14,7 +14,7 @@ import parse from 'html-react-parser';
|
||||
import { getReactCustomHtmlParser, LINKIFY_OPTS } from '$plugins/react-custom-html-parser';
|
||||
import { sanitizeCustomHtml } from '$utils/sanitize';
|
||||
import { roomToUnreadAtom } from '$state/room/roomToUnread';
|
||||
import LogoSVG from '$public/res/svg/cinny.svg';
|
||||
import LogoSVG from '$public/res/svg/cinny-logo.svg';
|
||||
import LogoUnreadSVG from '$public/res/svg/cinny-unread.svg';
|
||||
import LogoHighlightSVG from '$public/res/svg/cinny-highlight.svg';
|
||||
import NotificationSound from '$public/sound/notification.ogg';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
|
||||
import { Page, PageHero, PageHeroSection } from '$components/page';
|
||||
import CinnySVG from '$public/res/svg/cinny.svg';
|
||||
import CinnySVG from '$public/res/svg/cinny-logo.svg';
|
||||
|
||||
export function WelcomePage() {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export const DEFAULT_NOTIFICATION_ICON = '/public/res/apple/apple-touch-icon-180x180.png';
|
||||
export const DEFAULT_NOTIFICATION_BADGE = '/public/res/apple/apple-touch-icon-72x72.png';
|
||||
export const DEFAULT_NOTIFICATION_ICON =
|
||||
'/public/res/logo-maskable/cinny-logo-maskable-180x180.png';
|
||||
export const DEFAULT_NOTIFICATION_BADGE = '/public/res/logo-maskable/cinny-logo-maskable-72x72.png';
|
||||
export const DEFAULT_MESSAGE_PREVIEW = 'new message';
|
||||
export const ENCRYPTED_MESSAGE_PREVIEW = 'Encrypted message';
|
||||
|
||||
|
||||
@@ -366,8 +366,8 @@ async function handleMinimalPushPayload(
|
||||
console.debug('[SW push] minimal payload: no session, showing generic notification');
|
||||
await self.registration.showNotification('New Message', {
|
||||
body: undefined,
|
||||
icon: '/public/res/apple/apple-touch-icon-180x180.png',
|
||||
badge: '/public/res/apple/apple-touch-icon-72x72.png',
|
||||
icon: '/public/res/logo-maskable/cinny-logo-maskable-180x180.png',
|
||||
badge: '/public/res/logo-maskable/cinny-logo-maskable-72x72.png',
|
||||
tag: `room-${roomId}`,
|
||||
renotify: true,
|
||||
data: { room_id: roomId, event_id: eventId },
|
||||
@@ -384,8 +384,8 @@ async function handleMinimalPushPayload(
|
||||
if (!rawEvent) {
|
||||
await self.registration.showNotification('New Message', {
|
||||
body: undefined,
|
||||
icon: '/public/res/apple/apple-touch-icon-180x180.png',
|
||||
badge: '/public/res/apple/apple-touch-icon-72x72.png',
|
||||
icon: '/public/res/logo-maskable/cinny-logo-maskable-180x180.png',
|
||||
badge: '/public/res/logo-maskable/cinny-logo-maskable-72x72.png',
|
||||
tag: `room-${roomId}`,
|
||||
renotify: true,
|
||||
data: { room_id: roomId, event_id: eventId, user_id: session.userId },
|
||||
|
||||
@@ -81,7 +81,15 @@ const copyFiles = {
|
||||
dest: '',
|
||||
},
|
||||
{
|
||||
src: 'public/res/android',
|
||||
src: 'public/res/logo-maskable',
|
||||
dest: 'public/',
|
||||
},
|
||||
{
|
||||
src: 'public/res/logo',
|
||||
dest: 'public/',
|
||||
},
|
||||
{
|
||||
src: 'public/res/svg',
|
||||
dest: 'public/',
|
||||
},
|
||||
{
|
||||
|
||||