Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Make social app installable as PWA

Anand Baburajan10e87936c1a7
diff --git a/web/apps/social/public/images/apple-touch-icon.png b/web/apps/social/public/images/apple-touch-icon.png
new file mode 100644
index 0000000000..cdd0d46a39
Binary files /dev/null and b/web/apps/social/public/images/apple-touch-icon.png differ
diff --git a/web/apps/social/public/images/pwa-icon-192.png b/web/apps/social/public/images/pwa-icon-192.png
new file mode 100644
index 0000000000..08bf586354
Binary files /dev/null and b/web/apps/social/public/images/pwa-icon-192.png differ
diff --git a/web/apps/social/public/images/pwa-icon-512.png b/web/apps/social/public/images/pwa-icon-512.png
new file mode 100644
index 0000000000..dcf8e079cc
Binary files /dev/null and b/web/apps/social/public/images/pwa-icon-512.png differ
diff --git a/web/apps/social/public/manifest.webmanifest b/web/apps/social/public/manifest.webmanifest
new file mode 100644
index 0000000000..5bc3ee1fa4
--- /dev/null
+++ b/web/apps/social/public/manifest.webmanifest
@@ -0,0 +1,24 @@
+{
+ "name": "Ente Social",
+ "short_name": "Ente",
+ "description": "Share moments with friends on Ente.",
+ "start_url": "/app",
+ "scope": "/",
+ "display": "standalone",
+ "background_color": "#FFFFFF",
+ "theme_color": "#FFFFFF",
+ "icons": [
+ {
+ "src": "/images/pwa-icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "any maskable"
+ },
+ {
+ "src": "/images/pwa-icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "any maskable"
+ }
+ ]
+}
diff --git a/web/apps/social/src/pages/_app.tsx b/web/apps/social/src/pages/_app.tsx
index becb6689db..0c7ff48a98 100644
--- a/web/apps/social/src/pages/_app.tsx
+++ b/web/apps/social/src/pages/_app.tsx
@@ -19,7 +19,21 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
defaultMode="light"
storageManager={null}
>
- <CustomHead title="Ente" />
+ <CustomHead title="Ente Social">
+ <meta name="application-name" content="Ente Social" />
+ <meta name="mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-title" content="Ente Social" />
+ <meta
+ name="apple-mobile-web-app-status-bar-style"
+ content="default"
+ />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link
+ rel="apple-touch-icon"
+ href="/images/apple-touch-icon.png"
+ />
+ </CustomHead>
<CssBaseline enableColorScheme />
<SocialAppStateProvider>
<Component {...pageProps} />