[PR #25274] feat(web): add Progressive Web App (PWA) support #30991

Closed
opened 2026-02-21 20:48:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25274

State: closed
Merged: Yes


Summary

This PR adds Progressive Web App (PWA) capabilities to Dify, enabling offline support, app installation, and improved mobile experience.

Closes #25273

Changes

  • 🔧 Service Worker Integration: Added next-pwa package with intelligent caching strategies
  • 📱 Web App Manifest: Created manifest.json with app metadata and shortcuts
  • 🎨 PWA Icons: Generated all required icon sizes (72x72 to 512x512)
  • ⚙️ Configuration: Updated Next.js config with PWA settings
  • 🏷️ Meta Tags: Added PWA-specific meta tags and links in layout

Features

  • Installable as standalone app on desktop and mobile
  • Intelligent caching (CacheFirst for assets, NetworkFirst for API)
  • App shortcuts for quick access to Apps and Datasets
  • Microsoft Windows tile support

Screenshots

The app can now be installed from the browser and works offline:

  • Desktop: Install button appears in address bar
    Screenshot 2025-09-06 at 1 14 17 AM
**Original Pull Request:** https://github.com/langgenius/dify/pull/25274 **State:** closed **Merged:** Yes --- ## Summary This PR adds Progressive Web App (PWA) capabilities to Dify, enabling offline support, app installation, and improved mobile experience. Closes #25273 ## Changes - 🔧 **Service Worker Integration**: Added `next-pwa` package with intelligent caching strategies - 📱 **Web App Manifest**: Created manifest.json with app metadata and shortcuts - 🎨 **PWA Icons**: Generated all required icon sizes (72x72 to 512x512) - ⚙️ **Configuration**: Updated Next.js config with PWA settings - 🏷️ **Meta Tags**: Added PWA-specific meta tags and links in layout ## Features - ✅ Installable as standalone app on desktop and mobile - ✅ Intelligent caching (CacheFirst for assets, NetworkFirst for API) - ✅ App shortcuts for quick access to Apps and Datasets - ✅ Microsoft Windows tile support ## Screenshots The app can now be installed from the browser and works offline: - Desktop: Install button appears in address bar <img width="1512" height="883" alt="Screenshot 2025-09-06 at 1 14 17 AM" src="https://github.com/user-attachments/assets/b32709c4-e423-4c0a-84fd-ba92dbc4fa65" />
yindo added the pull-request label 2026-02-21 20:48:37 -05:00
yindo closed this issue 2026-02-21 20:48:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30991