WebLab PWA Suite turns any WordPress site into a Progressive Web App — installable, offline-capable, and mobile-optimized.
The plugin generates a valid Web App Manifest, registers a Workbox v7 Service Worker, and adds the platform-specific meta tags required for installation on Android, iOS, and desktop browsers.
Why a PWA?
A Progressive Web App provides a native-app-like experience directly from the browser:
- Installable — users can add your site to their home screen.
- Fast — assets are cached and served instantly on repeat visits.
- Offline-capable — the site remains usable without an internet connection.
- Engaging — push notifications bring users back.
- No app store — no publishing fees, no review delays.
Install UX (Free)
The plugin includes a complete, professionally-designed install experience with 42 free features that work out-of-the-box:
Smart Banner
- Mobile-only banner (never annoying on desktop)
- Value proposition with 3 configurable bullet points (icon + text)
- Safe-area padding for iPhone notch
- Dark mode support (prefers-color-scheme)
-
WCAG 2.1 AA accessible (ARIA, keyboard, focus trap)
Triggers (configurable)
-
Time on page (default: 30 seconds)
- Scroll depth (default: 50%)
- Returning visitor (2nd+ visit)
- Exit-intent (desktop, optional)
-
Custom trigger via JS API
Dismiss & Persistence
-
"Later" button (temporary dismiss)
- "Never" button with 24h-720h cooldown
- localStorage persistence
-
Progressive cooldown
Per-Platform Instructions
-
iOS Safari: Share → Add to Home Screen → Add
- Android Chrome: menu → Install app → Install
- Desktop: install icon in address bar
-
Special message for in-app browsers (FB/IG/TikTok/WhatsApp)
Desktop QR Code
-
Scan with phone to install
-
Shortcode: [afpwa_qr size="200" caption="Scan me!"]
A/B Testing for Install Messages
-
Up to 3 message variants (Free Install UX feature)
- Integrates with the analytics dashboard
-
Auto-tracked conversion per variant
Push Opt-in Secondary
-
Shown after app install (not before)
- GDPR-friendly
-
Customizable title, body, preview
Analytics Dashboard
-
Widget in WordPress Dashboard
- Tracks: banner shown, dismissed, installs, CTR
- Per-platform breakdown (iOS/Android/Desktop)
- CSV export
Free Features
- Web App Manifest — dynamically generated, valid, and cached.
- Service Worker (Workbox v7) — with configurable cache strategies.
- Automatic icon generation — all PWA icon sizes (48px–512px) from a single upload (requires GD or Imagick).
- Legacy icons — favicon and Apple Touch Icons for older devices.
- Offline page — assign any WordPress page as the offline fallback.
- iOS support — Apple meta tags and auto-generated splash screens.
- Android support — Chrome address bar color, Trusted Web Activity hints.
- Dark mode — separate theme and background colors for dark schemes.
- Push notifications — via Firebase Cloud Messaging or OneSignal.
- Background sync — offline form submissions are queued and sent when the connection returns.
- AMP support — integrates with the official AMP plugin.
- WP Hide compatibility — works with WP Hide & Security Enhancer.
- Loading icons library — 4 built-in styles (spinner, dots, pulse, bars).
- Pull to refresh — native-style refresh gesture in standalone mode.
- Connectivity notice — customizable online/offline notifications.
- Scroll progress bar — visual reading progress indicator.
- Custom 404 page — configurable fallback for offline navigation errors.
- QR Code Install — desktop-to-mobile handoff via QR code.
- WooCommerce integration — product shortcuts and cache rules.
Premium Add-ons (optional)
Premium features are available through a separate license and an external add-on plugin. The free version is fully functional on its own.
- Offline Page Builder (drag-and-drop, 10+ templates)
- Google Analytics 4 integration
- AI-Powered Caching (predictive prefetch)
- Real-time analytics dashboard
- PWA to APK (Trusted Web Activity)
- BuddyPress push notifications
- White-label branding
- Priority support
Premium licensing and updates are served from
advancedpwa.weblab.md. See the External Services section for details.
Requirements
- WordPress 6.0 or higher
- PHP 8.0 or higher
- HTTPS — required for Service Workers (browsers enforce this)
- Pretty Permalinks — required for manifest.json and service-worker.js endpoints.
- GD or Imagick — for automatic icon generation (optional; WordPress fallback used otherwise)
- Upload the
weblab-suite-pwa folder to the /wp-content/plugins/ directory, or install the plugin directly through the WordPress 'Plugins' screen.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Open PWA Settings in the admin menu.
- Upload a 512x512 icon, then click Generate All Sizes.
- Configure the offline page URL, theme colors, and other options.
- Click Save Settings — the manifest and Service Worker are regenerated automatically.
Multisite
The plugin supports WordPress Multisite. Each site maintains its own manifest, Service Worker, icon set, and settings. A network admin panel is available for an overview.
Manual installation
If you prefer manual installation:
- Download the plugin ZIP file.
- Extract it into the
/wp-content/plugins/ directory.
- Activate it from the Plugins screen.
- Configure as described above.
1.3.7
Fix: Corrected the hardcoded license server URL to point to
weblab.md instead of
advancedpwa.weblab.md.
Feature: Added AFPWA_License_Handler to properly process the license activation form on the Upgrade page.
Feature: Added automatic creation of the /install/ landing page via the admin notice button.
Feature: Added an "Install Landing Page" selector in the Install settings tab to allow manual page assignment.
1.3.6
- Enhancement: Made AMP Support and A/B Testing (Install Messages) completely free for all users, aligning with the plugin's core promise.
- UI: Redesigned the Upgrade page for a more professional, modern look.
- UI: Fixed the Free vs Premium comparison table to accurately reflect the actual features.
- Security: Locked the License Server URL in the code to prevent unauthorized modifications.
1.3.5
- Added automated translations for Russian, French, German, Spanish, and Italian.
1.3.4
- Fix: Banner title now falls back to App Name if the Install Title is left as default.
1.3.3
- Fix: Banner title now dynamically pulls the App Name from general settings if the Install Title is left as default.
- Fix: Added missing CSS for the instructions modal, making it visible and styled when clicked on unsupported browsers.
1.3.2
- Fix: Added missing CSS for the instructions modal (now clicking Install always opens a visible modal on unsupported browsers).
- Fix: Banner title now falls back to the App Name if the custom Install Title is left as default.
1.3.1
- Fix: The Install button is now always active. If the browser does not support direct installation (iOS, Incognito), clicking it opens the step-by-step instructions modal.
1.3.0
- Feature: Added a modern, native-app-like CSS design for the Install Banner (bottom sheet style).
- Fix: Restored missing sanitization methods for all settings tabs (General, Install, Privacy, Advanced).
- Fix: Added cache-buster to manifest link to force mobile browsers to fetch the updated name and icons immediately.
1.2.9
- Fix: Added cache-busting parameter to the manifest link to force browsers to fetch updated settings (name, icons) immediately.
1.2.8
- Fix: Restored missing
sanitize_general() method to prevent fatal error when saving General tab settings.
1.2.7
- Fix: Replaced rigid whitelist with generic sanitizer for Privacy and Advanced tabs to ensure all submitted fields are saved.
1.2.6
- Fix: Added missing save handlers and sanitization for Privacy, Heatmap, and Webhooks tabs in class-settings.php.
1.2.5
- Fix: Added missing
sanitize_install() method and case 'install': in AFPWA_Settings::save() to ensure settings in the Install tab are properly saved.
1.2.4
- Fix: Added
registration.update() in sw-register.js to force the browser to check for a new Service Worker on every page load, ensuring the "Update available" banner appears correctly.
1.2.3
- Fix: Clear static files on force SW update via
AFPWA_File_Server::cleanup_static_files().
- Fix: Ensure
manifest.json and service-worker.js are physically deleted when clicking Update SW, forcing regeneration with new data.
1.2.2
- Security: Implemented the new AFPWA_Security class for real IP Whitelist enforcement (403 Forbidden) and strict HTTP Security Headers (HSTS, CSP, Permissions-Policy, X-Frame-Options).
- Security: Changed get_client_ip() visibility to public to allow strict security validation.
- Fix: Added direct request interception for manifest.json and service-worker.js to bypass restrictive server rewrite rules.
- Fix: Resolved PHP 8.1 deprecation warning (trim null) in the direct file server class.
- Fix: Resolved a fatal error in the QR Code generator by adding a secure local SVG allowlist array.
- Fix: Corrected the inline script handle for shortcodes (weblab-pwa-frontend-inline) ensuring buttons and status badges work correctly.
- Fix: Ensured saving Appearance settings instantly clears the manifest transient cache to reflect theme color and orientation changes immediately.
- Feature: Added the missing logic for the [afpwa_save_button] shortcode and Content Indexing (offline articles) injection.
- Compliance: Full WordPress.org UI compliance. Hidden non-functional Premium settings in the Free version and replaced them with clear "Premium Feature" notices.
- Improvement: Validated PWA endpoints and ensured all frontend Free scripts (bottom-nav, pull-to-refresh, connectivity notice) are properly injected.
1.2.1
- Fix: Implemented proper enforcement for IP Whitelist and Security Headers (HSTS, CSP, Permissions-Policy) via the new AFPWA_Security class.
- Fix: Resolved PHP 8.1 deprecation warning (trim null) in the direct file serving interception for manifest.json and service-worker.js.
- Enhancement: Improved reliability of the PWA endpoints on servers with restrictive rewrite rules.
1.2.0
- Fix: Replaced the custom QR code generator with the industry-standard chillerlan/php-qrcode library to ensure QR codes are 100% scannable.
- Fix: Added direct request interception in AFPWA_File_Server to serve manifest.json and service-worker.js.
- Fix: Resolved the activation warning by wrapping global define() calls and dbDelta() in output buffers.
- Enhancement: The [afpwa_qr_install] shortcode now auto-detects the /install/ landing page.
- Enhancement: Added an admin notice to remind users to create the /install/ page.
1.0.3
- WP.ORG SUBMISSION: 0 ERRORS on Plugin Check for Free tier.
- NEW: Free/Pro split — hook-based communication.
- COMPLIANCE: Plugin header fully WP.org compliant.
- SECURITY: wp_unslash() on all $_POST / $_SERVER reads.
- SECURITY: sanitize_text_field / map_deep on all remaining inputs.
- SECURITY: esc_html__() in wp_die() calls.
- SECURITY: wp_delete_file() replacing unlink().
- SECURITY: wp_parse_url() replacing parse_url().
- SECURITY: gmdate() replacing date().
1.0.1
- NEW: Complete Install UX with 42 FREE-tier features.
- NEW: Admin tab "📱 Install" with 7 configuration sections.
- NEW: Mobile-only install banner.
- NEW: Per-platform instructions (iOS, Android, Desktop).
- NEW: Desktop QR code.
- NEW: Auto-generation of all icon sizes on upload.
1.0.0