DocsoPWAOverview & Installation
Getting Started

Overview & Installation

oPWAorravo.com/docs/opwa/overview

Overview

oPWA (v1.0.0) adds PWA capabilities to any WordPress site with no third-party push service.

Constants:

ConstantValue
OPWA_VERSION'1.0.0'
OPWA_OPTION'opwa_settings' (wp_options key)
OPWA_PATHAbsolute plugin directory path
OPWA_URLPlugin directory URL
OPWA_DB_VERSION'1.0'

Key capabilities:

FeatureDescription
Web App ManifestApp name, icons, theme colors, screenshots, share target
Service Worker5 caching strategies, custom URL routing, precache, offline fallback
Push NotificationsSelf-hosted VAPID (RFC 8030), AES-128-GCM encrypted payloads
Install Prompt5 trigger modes, customisable banner, iOS instructions
Background SyncIndexedDB form queue, syncs on reconnect
Cache ManagementLive stats via SW postMessage, clear all / by URL
AnalyticsBeacon-based: page views, SW coverage, cache hit rate, installs
WooCommerce ModeNetwork-only for checkout/cart/account URLs

Requirements

  • WordPress: 6.0+, PHP: 7.4+ (8.1+ recommended)
  • PHP extensions: openssl with EC support; gmp (fallback ECDH for PHP < 8.1)
  • HTTPS required — service workers only run on secure origins
  • Browser: Chrome 67+, Firefox 63+, Edge 79+, Safari 16.4+

Installation

  1. Upload opwa/ to wp-content/plugins/, activate
  2. Navigate to oPWA in WP admin
  3. Complete Manifest tab — app name, colors, icons
  4. Generate VAPID keys to enable push
  5. Visit your site — the SW registers and manifest is served

On activation: Creates 3 database tables (opwa_subscribers, opwa_campaigns, opwa_analytics), auto-detects site icon, generates default precache URL list.

Overview & Installation — oPWA Docs — Orravo