fix: push notification

This commit is contained in:
gosangam
2026-06-08 17:17:50 +05:30
parent 90df5bc784
commit deeda40c9d
5 changed files with 36 additions and 0 deletions
+6
View File
@@ -54,6 +54,12 @@ export const metadata: Metadata = {
title: "Prabhupāda Says", title: "Prabhupāda Says",
statusBarStyle: "default", statusBarStyle: "default",
}, },
// Home Screen / tab icons. The apple-touch-icon is what iOS uses for the
// installed PWA (the prerequisite for Web Push on iPhone/iPad).
icons: {
icon: "/icon-192.png",
apple: "/apple-icon.png",
},
...ogDefault(), ...ogDefault(),
}; };
+30
View File
@@ -0,0 +1,30 @@
import type { MetadataRoute } from "next";
/**
* Web App Manifest — makes the site installable as a standalone PWA. This is
* what lets iOS (16.4+) deliver Web Push: notifications only work once the
* site is added to the Home Screen and launched standalone. Next serves this
* at /manifest.webmanifest and links it automatically.
*/
export default function manifest(): MetadataRoute.Manifest {
return {
name: "Prabhupāda Says",
short_name: "Prabhupāda",
description:
"Browse the books and teachings of His Divine Grace A.C. Bhaktivedanta Swami Prabhupāda",
start_url: "/",
display: "standalone",
background_color: "#fdf7ee",
theme_color: "#fdf7ee",
icons: [
{ src: "/icon-192.png", sizes: "192x192", type: "image/png" },
{ src: "/icon-512.png", sizes: "512x512", type: "image/png" },
{
src: "/icon-512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
};
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB