Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(frontend): correct OS push notification icons and add web app manifest (#13245)

Krzysztof Czerwinski0d0e0cdcb757
diff --git a/autogpt_platform/frontend/public/apple-touch-icon.png b/autogpt_platform/frontend/public/apple-touch-icon.png
new file mode 100644
index 0000000000..1e83446131
Binary files /dev/null and b/autogpt_platform/frontend/public/apple-touch-icon.png differ
diff --git a/autogpt_platform/frontend/public/manifest.webmanifest b/autogpt_platform/frontend/public/manifest.webmanifest
new file mode 100644
index 0000000000..14deaa08ec
--- /dev/null
+++ b/autogpt_platform/frontend/public/manifest.webmanifest
@@ -0,0 +1,23 @@
+{
+ "name": "AutoGPT Platform",
+ "short_name": "AutoGPT",
+ "description": "Your one stop shop to creating AI Agents",
+ "start_url": "/",
+ "display": "standalone",
+ "background_color": "#04062e",
+ "theme_color": "#04062e",
+ "icons": [
+ {
+ "src": "/notification-icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "any maskable"
+ },
+ {
+ "src": "/notification-icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "any maskable"
+ }
+ ]
+}
diff --git a/autogpt_platform/frontend/public/notification-badge-96.png b/autogpt_platform/frontend/public/notification-badge-96.png
new file mode 100644
index 0000000000..917d242dff
Binary files /dev/null and b/autogpt_platform/frontend/public/notification-badge-96.png differ
diff --git a/autogpt_platform/frontend/public/notification-icon-192.png b/autogpt_platform/frontend/public/notification-icon-192.png
index 252219f0d2..4eb0f4c8fc 100644
Binary files a/autogpt_platform/frontend/public/notification-icon-192.png and b/autogpt_platform/frontend/public/notification-icon-192.png differ
diff --git a/autogpt_platform/frontend/public/notification-icon-512.png b/autogpt_platform/frontend/public/notification-icon-512.png
index 7d5b5bf0e7..fd3b12c37c 100644
Binary files a/autogpt_platform/frontend/public/notification-icon-512.png and b/autogpt_platform/frontend/public/notification-icon-512.png differ
diff --git a/autogpt_platform/frontend/public/push-sw.js b/autogpt_platform/frontend/public/push-sw.js
index b923070fc0..388c10b3a1 100644
--- a/autogpt_platform/frontend/public/push-sw.js
+++ b/autogpt_platform/frontend/public/push-sw.js
@@ -153,7 +153,7 @@ self.addEventListener("push", function (event) {
var options = {
body: config.body,
icon: "/notification-icon-192.png",
- badge: "/notification-icon-192.png",
+ badge: "/notification-badge-96.png",
tag: tag,
data: Object.assign({ url: targetUrl }, data),
renotify: true,
diff --git a/autogpt_platform/frontend/src/app/layout.tsx b/autogpt_platform/frontend/src/app/layout.tsx
index df67b9d0c2..843e9d2433 100644
--- a/autogpt_platform/frontend/src/app/layout.tsx
+++ b/autogpt_platform/frontend/src/app/layout.tsx
@@ -28,8 +28,10 @@ const faviconPath = isDev
export const metadata: Metadata = {
title: "AutoGPT Platform",
description: "Your one stop shop to creating AI Agents",
+ manifest: "/manifest.webmanifest",
icons: {
icon: faviconPath,
+ apple: "/apple-touch-icon.png",
},
};