The pwa_info package provides utilities to detect and retrieve information about a Progressive Web App (PWA) environment across multiple platforms. It enables developers to check if the current app is running as a PWA, access PWA-specific metadata such as manifest details, and determine installation status on supported platforms. This helps tailor user experiences based on whether the app is launched from a browser or installed as a standalone PWA. The package supports Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform web applications aiming to enhance PWA functionality.
Use cases
- Detecting PWA installation status
- Accessing PWA manifest data
- Customizing UI based on PWA context
- Enabling offline capabilities
- Supporting cross-platform PWA apps
- Improving user engagement with PWA features
Key features
- Cross-platform compatibility
- Manifest data retrieval
- Installation status detection
- Simple API integration
- Supports all major platforms
- Lightweight and efficient
Suitable for
- Developers building PWAs
- Apps requiring PWA-specific logic
- Cross-platform web applications
- Projects targeting multiple OS environments
- Teams using Flutter for web and mobile
Considerations
- Requires web platform support
- Limited to PWA-specific checks
- No runtime configuration options
- Depends on browser PWA APIs
- Not suitable for native-only apps
- May not work in all embedded WebView scenarios