diff --git a/lib/pleroma/web/views/manifest_view.ex b/lib/pleroma/web/views/manifest_view.ex index 2ae82191ee..f8adf0f58f 100644 --- a/lib/pleroma/web/views/manifest_view.ex +++ b/lib/pleroma/web/views/manifest_view.ex @@ -22,7 +22,48 @@ def render("manifest.json", _params) do ], serviceworker: %{ src: "/sw.js" - } + }, + share_target: %{ + action: "share", + method: "GET", + params: %{ + title: "title", + text: "text", + url: "url" + } + }, + shortcuts: [ + %{ + name: "Search", + url: "/search", + icons: [ + %{ + src: "/images/shortcuts/search.png", + sizes: "192x192" + } + ] + }, + %{ + name: "Notifications", + url: "/notifications", + icons: [ + %{ + src: "/images/shortcuts/notifications.png", + sizes: "192x192" + } + ] + }, + %{ + name: "Chats", + url: "/chats", + icons: [ + %{ + src: "/images/shortcuts/chats.png", + sizes: "192x192" + } + ] + } + ] } end end diff --git a/priv/static/images/shortcuts/chats.png b/priv/static/images/shortcuts/chats.png new file mode 100644 index 0000000000..29ddc8a4e1 Binary files /dev/null and b/priv/static/images/shortcuts/chats.png differ diff --git a/priv/static/images/shortcuts/notifications.png b/priv/static/images/shortcuts/notifications.png new file mode 100644 index 0000000000..3011468965 Binary files /dev/null and b/priv/static/images/shortcuts/notifications.png differ diff --git a/priv/static/images/shortcuts/search.png b/priv/static/images/shortcuts/search.png new file mode 100644 index 0000000000..5c47de4c1e Binary files /dev/null and b/priv/static/images/shortcuts/search.png differ