From 000344a942738b7bdfabe3d4b18ee1cdf8ab1964 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 28 Jan 2026 13:35:50 -0800 Subject: [PATCH] Fixing bugs with push notifications --- capacitor.config.ts | 12 +-- package.json | 2 +- pnpm-lock.yaml | Bin 346469 -> 346469 bytes src/app.html | 2 +- src/app/components/MenuSpacesItem.svelte | 4 +- src/app/util/notifications.ts | 125 ++++++++++++----------- 6 files changed, 74 insertions(+), 71 deletions(-) diff --git a/capacitor.config.ts b/capacitor.config.ts index 51a259a4..b1569cae 100644 --- a/capacitor.config.ts +++ b/capacitor.config.ts @@ -4,13 +4,13 @@ const config: CapacitorConfig = { appId: "social.flotilla", appName: "Flotilla", webDir: "build", - server: { - androidScheme: "https", - }, android: { adjustMarginsForEdgeToEdge: false, }, plugins: { + CapacitorHttp: { + enabled: true, + }, SystemBars: { insetsHandling: "disable", }, @@ -26,10 +26,10 @@ const config: CapacitorConfig = { autoClear: true, }, }, - // Use this for live reload https://capacitorjs.com/docs/guides/live-reload server: { - url: "http://192.168.1.148:1847", - cleartext: true, + // Use this for live reload https://capacitorjs.com/docs/guides/live-reload + // url: "http://192.168.1.17:1847", + // cleartext: true, }, } diff --git a/package.json b/package.json index 573cf39a..a0345b63 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "husky": "^9.1.7", "idb": "^8.0.3", "nostr-signer-capacitor-plugin": "^0.0.4", - "nostr-tools": "^2.19.4", + "nostr-tools": "^2.19.4", "prettier-plugin-tailwindcss": "^0.6.14", "qr-scanner": "^1.4.2", "qrcode": "^1.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c39fe369573f7118b1cdc7e9b0cc45cf639d6953..38123215146bf030b698d64723647ccbdf21dbff 100644 GIT binary patch delta 177 zcmaDlN%ZL?(S{br7N#xCA?v3<*w4bXJ#Ia-i71H4G5y?WW|!&rjxd)XxZCF)W%gl2 z@Tcn@W9FUwVKc{e@8itoND`Cdw+c^xdxTkJI*&f9@btZ>nM0@ZZ(!!yo_>;<6-gaf saPo_7yxY&8V&-82yJ5Px5u7k;iv%s2F^YB diff --git a/src/app.html b/src/app.html index 59f18710..91fcbd3c 100644 --- a/src/app.html +++ b/src/app.html @@ -26,7 +26,7 @@ %sveltekit.head% - +
%sveltekit.body%