Skip to main content
HAPI’s web interface is a fully-featured PWA that can be installed on your phone for a native app-like experience.

What is a PWA?

A Progressive Web App (PWA) is a web application that can be installed on your device and works like a native app:

Home Screen Icon

Launch HAPI like any other app from your home screen

Full Screen Mode

No browser chrome, immersive experience

Offline Support

Basic functionality works without internet

Auto-Updates

Always get the latest version automatically

Installing HAPI PWA

Android (Chrome/Edge)

1

Open HAPI

Navigate to HAPI in Chrome or Edge browser
2

Install Prompt

Look for the “Install HAPI” banner at the bottom
3

Tap Install

Tap “Install” and HAPI appears on your home screen
If you don’t see the install banner, tap the three-dot menu and select “Add to Home screen” or “Install app”.

iOS (Safari)

1

Open in Safari

Open HAPI in Safari browser (required for iOS)
2

Share Button

Tap the Share button (square with arrow)
3

Add to Home Screen

Scroll down and tap “Add to Home Screen”
4

Confirm

Tap “Add” in the top right corner
iOS requires Safari for PWA installation. Chrome/Firefox on iOS don’t support the “Add to Home Screen” feature for PWAs.

Desktop (Chrome/Edge)

1

Open HAPI

Open HAPI in Chrome or Edge browser
2

Install Icon

Click the install icon in the address bar (⊕)
3

Confirm

Or use the menu: “Install HAPI…”
4

Launch

HAPI opens as a standalone window

PWA Features

Offline Mode

When offline, HAPI can:
  • Display cached session lists
  • Show previously loaded messages
  • Queue actions for when you’re back online
An offline indicator appears when you lose connection.
You must load the app at least once online to enable offline functionality.

Auto-Update

HAPI automatically checks for updates:
  • Updates are checked hourly in the background
  • When a new version is available, you’ll see a prompt
  • Click “Reload” to get the latest version
No manual update process required — HAPI stays up to date automatically.

Background Sync

Actions taken offline are synced when reconnected:
  • Pending messages are sent
  • Permission decisions are relayed
  • Session state is refreshed

Caching Strategy

HAPI uses intelligent caching for optimal performance:
ContentStrategyDuration
App shellCache firstUntil update
Sessions APINetwork first5 minutes
Machines APINetwork first10 minutes
Static assetsCache firstForever

Push Notifications

HAPI supports push notifications to alert you when agents need attention.

Enable Notifications

1

Open HAPI

Open HAPI — a permission popup appears automatically
2

Allow

Tap Allow to enable notifications
3

System Settings

If you missed the popup, go to system settings to grant permission

Notification Types

Permission Request

Agent needs your approval for a tool or file operation

Session Ready

Agent finished a task and awaits your input
If push notifications don’t work in your region (e.g., FCM unavailable), use Telegram integration instead.

Managing Your PWA

Check Install Status

HAPI shows different UI based on install status:
  • Not installed - Shows install prompt
  • Installing - Shows progress indicator
  • Installed - No prompt shown

Uninstalling

  1. Long-press the HAPI icon
  2. Drag to “Uninstall” or tap the X

Clearing Cache

If you experience issues:
1

Open in Browser

Open HAPI in browser (not installed version)
2

Developer Tools

Open Developer Tools (F12)
3

Application Tab

Go to Application → Storage
4

Clear Data

Click “Clear site data”

Best Practices

Battery Optimization (Android)

On Android, disable battery optimization for HAPI to ensure:
  • Background sync works reliably
  • Notifications arrive promptly
Path: Settings → Apps → HAPI → Battery → Unrestricted

Data Usage

HAPI uses minimal data:
  • Initial load: ~500KB
  • Cached after first load
  • Only syncs changed data

Multiple Devices

You can install HAPI on multiple devices:
  • All devices use the same hub server
  • Sessions sync across devices
  • Same access token works everywhere
Your sessions are server-side, so switching devices is seamless.

Browser Compatibility

BrowserPlatformSupport
ChromeAndroid✅ Full support
EdgeAndroid✅ Full support
SafariiOS⚠️ Limited (no background sync)
ChromeDesktop✅ Full support
EdgeDesktop✅ Full support
FirefoxAll⚠️ Partial (no install prompt)

Troubleshooting

  • Ensure you’re using HTTPS (required for PWA)
  • Try refreshing the page
  • Check if already installed
  • Use Chrome or Edge (Firefox doesn’t show install prompt)
  1. Close the app completely
  2. Reopen and wait for update prompt
  3. If stuck, clear cache and reinstall
  • Ensure you’ve loaded the app at least once online
  • Check if ServiceWorker is registered (DevTools → Application)
  • Clear cache and reload
  • Must use Safari for installation
  • No background sync on iOS (technical limitation)
  • Limited offline capabilities compared to Android
  • No push notifications (use Telegram instead)
  • Check browser notification permissions
  • Disable battery optimization (Android)
  • Verify VAPID configuration on hub
  • Consider using Telegram as fallback

Telegram Mini App Alternative

If PWA doesn’t suit your needs, consider the Telegram Mini App:

Works Inside Telegram

No separate installation required

Same Features

Identical functionality to PWA

Integrated Notifications

Uses Telegram’s notification system

Better iOS Support

No Safari limitations
See Telegram Integration for setup.

Remote Control

Switch between local and remote modes

Telegram

Alternative mobile experience

Permissions

Approve agent actions on the go

Build docs developers (and LLMs) love