This guide helps you resolve common issues with the Filament PWA plugin.
Problem: Plugin doesn't appear to be working after installation.
Solutions:
Clear application cache:
php artisan cache:clear
php artisan config:clear
php artisan view:clear
Verify plugin registration:
// In your Panel provider
->plugin(FilamentPwaPlugin::make())
Check for conflicts with other plugins
Problem: Configuration changes don't take effect.
Solutions:
Clear config cache:
php artisan config:clear
Verify configuration file location:
ls -la config/filament-pwa.php
Check environment variables in .env
Problem: php artisan filament-pwa:setup --generate-icons fails.
Solutions:
Check source file exists:
ls -la public/icon.svg
Verify file permissions:
chmod 644 public/icon.svg
chmod 755 public/images/icons/
Install required image libraries:
# ImageMagick
sudo apt-get install php-imagick
# Intervention Image
composer require intervention/image
Problem: Generated icons are blurry or low quality.
Solutions:
Problem: Cannot write to icons directory.
Solutions:
Create directory with proper permissions:
mkdir -p public/images/icons
chmod 755 public/images/icons
Check web server user permissions:
chown -R www-data:www-data public/images/icons
Problem: PWA installation banner doesn't appear.
Solutions:
Check HTTPS requirement (required in production)
Verify all PWA criteria are met:
php artisan filament-pwa:setup --validate
Check browser console for errors
Clear browser cache and service worker
Verify manifest is accessible: /manifest.json
Problem: PWA installation fails or doesn't work properly.
Solutions:
Check manifest validation:
Verify required icons exist:
ls -la public/images/icons/icon-192x192.png
ls -la public/images/icons/icon-512x512.png
Check service worker registration:
Problem: Installation doesn't work on iOS Safari.
Solutions:
iOS requires manual installation via "Add to Home Screen"
Ensure proper meta tags are present:
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Your App">
Verify apple-touch-icon is present
Check iOS-specific requirements in documentation
Problem: Service worker fails to register.
Solutions:
/sw.jsProblem: Content not caching or updating properly.
Solutions:
Update cache version in configuration:
'cache_name' => 'filament-admin-v1.0.1',
Clear service worker cache:
Check cache patterns in service worker
Verify network requests in DevTools
Problem: App doesn't work offline.
Solutions:
/offlineProblem: Browser can't load manifest.json.
Solutions:
Check manifest is accessible:
curl -I https://yoursite.com/manifest.json
Verify proper content-type header:
Content-Type: application/json
Check for JSON syntax errors:
php artisan filament-pwa:setup --validate
Problem: Manifest validation fails.
Solutions:
Use manifest validator tools
Check required fields are present:
Verify icon paths are correct
Check JSON syntax
Problem: PWA loads slowly.
Solutions:
Problem: PWA assets are too large.
Solutions:
Problem: PWA doesn't work properly in Chrome.
Solutions:
Problem: PWA features limited in Firefox.
Solutions:
Problem: PWA doesn't work in Safari.
Solutions:
Problem: PWA features don't work in local development.
Solutions:
Use HTTPS in local development:
Use localhost (exempt from HTTPS requirement)
Test on actual devices when possible
Problem: PWA works locally but not in staging/production.
Solutions:
Chrome DevTools:
Firefox DevTools:
# Validate PWA setup
php artisan filament-pwa:setup --validate
# Check icon generation
php artisan filament-pwa:setup --generate-icons --source=public/logo.svg
# Clear all caches
php artisan cache:clear
php artisan config:clear
php artisan view:clear
Cause: Service worker file not accessible or invalid.
Solution:
/sw.js is accessibleCause: start_url is outside the defined scope.
Solution:
Cause: Service worker not properly registered.
Solution:
If you're still experiencing issues:
Check the documentation for detailed guides
Search existing issues on GitHub
Create a new issue with:
Join the community for support and discussions
How can I help you explore Laravel packages today?