Add android fallback for background push notifications (#102)

This commit is contained in:
2026-03-19 15:32:32 +00:00
parent 7e2a0e9d5f
commit 0761cdd28f
17 changed files with 1642 additions and 515 deletions
@@ -1,7 +1,7 @@
<script lang="ts">
import {onMount} from "svelte"
import {notificationSettings} from "@app/core/state"
import {onNotification} from "@app/util/notifications"
import {onNotification} from "@app/util/push"
let audioElement: HTMLAudioElement
+1 -1
View File
@@ -60,7 +60,7 @@
} else {
const permissions = await Push.request()
if (permissions === "granted") {
if (permissions.startsWith("granted")) {
await setSpaceNotifications(url, true)
}
}
+1 -1
View File
@@ -48,7 +48,7 @@
} else {
const permissions = await Push.request()
if (permissions === "granted") {
if (permissions.startsWith("granted")) {
await setSpaceNotifications(url, true)
}
}