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 | 14 +-- src/app.html | 2 +- src/app/components/MenuSpacesItem.svelte | 4 +- src/app/util/notifications.ts | 125 ++++++++++++----------- 6 files changed, 81 insertions(+), 78 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 c39fe369..38123215 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5601,7 +5601,7 @@ snapshots: rimraf: 4.4.1 semver: 7.7.3 tar: 6.2.1 - tslib: 2.6.2 + tslib: 2.8.1 xml2js: 0.5.0 transitivePeerDependencies: - supports-color @@ -5849,7 +5849,7 @@ snapshots: '@ionic/utils-array@2.1.6': dependencies: debug: 4.3.4 - tslib: 2.6.2 + tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -5858,7 +5858,7 @@ snapshots: '@types/fs-extra': 8.1.5 debug: 4.3.4 fs-extra: 9.1.0 - tslib: 2.6.2 + tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -5876,7 +5876,7 @@ snapshots: debug: 4.3.4 signal-exit: 3.0.7 tree-kill: 1.2.2 - tslib: 2.6.2 + tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -5894,7 +5894,7 @@ snapshots: '@ionic/utils-stream@3.1.6': dependencies: debug: 4.3.4 - tslib: 2.6.2 + tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -5914,7 +5914,7 @@ snapshots: '@ionic/utils-terminal': 2.3.4 cross-spawn: 7.0.6 debug: 4.3.4 - tslib: 2.6.2 + tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -5939,7 +5939,7 @@ snapshots: slice-ansi: 4.0.0 string-width: 4.2.3 strip-ansi: 6.0.1 - tslib: 2.6.2 + tslib: 2.8.1 untildify: 4.0.0 wrap-ansi: 7.0.0 transitivePeerDependencies: 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%