For full PWA functionality, you need to add two icon files:
icon-192.png- 192x192 pixelsicon-512.png- 512x512 pixels
These icons will be used when users install the app on their devices.
You can create simple icons using:
- Online tools like https://realfavicongenerator.net/
- Image editing software (Photoshop, GIMP, etc.)
- Or use a simple colored square with the app name
The icons should:
- Be square (1:1 aspect ratio)
- Use the theme color (#61dafb) or complementary colors
- Be recognizable at small sizes
- ✅ Swipe left/right on board to undo last move
- ✅ Haptic feedback for mobile devices (vibration patterns)
- ✅ Touch-optimized controls (tap highlights removed, better touch targets)
- ✅ Undo button as alternative to swipe gesture
- ✅ Visual hint for swipe gesture on mobile devices
- ✅ Progressive Web App manifest.json
- ✅ Service Worker for offline functionality
- ✅ Install prompt button (appears when browser supports PWA install)
- ✅ Offline play capability (cached resources)
- ✅ Push notification setup (client-side structure)
- ✅ Online/Offline status indicators
- ✅ App shortcuts for quick actions
-
Offline Testing:
- Open DevTools > Application > Service Workers
- Check "Offline" checkbox
- Refresh page - app should still work
-
Install Prompt:
- Open on Chrome/Edge mobile or desktop
- Look for install button or browser install prompt
- Install to home screen/desktop
-
Touch Gestures:
- On mobile device, swipe left or right on the game board to undo
- Or use the Undo button
-
Haptic Feedback:
- Test on a device with vibration support
- Should feel vibrations on moves, wins, losses, etc.
- Service Worker: Chrome, Firefox, Safari (iOS 11.3+), Edge
- Install Prompt: Chrome, Edge, Samsung Internet
- Haptic Feedback: Chrome/Edge on Android, Safari on iOS
- Push Notifications: Requires HTTPS and backend setup
- Add actual icon files (icon-192.png, icon-512.png)
- Set up HTTPS (required for service workers)
- Configure VAPID keys for push notifications (if using)
- Test on various devices and browsers
- Add app to app stores (via PWA Builder or similar)