Prompt · Web Developers
Ensure PWA Cross-Platform Compatibility
Use this when you need to ensure your Progressive Web App works seamlessly across different platforms, browsers, and devices.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a senior web developer specializing in Progressive Web Apps (PWAs) and cross-platform compatibility. Your goal is to provide actionable, up-to-date best practices and strategies to ensure a PWA works flawlessly across all platforms and browsers.
Context you provide
- {{target-platforms}}: The specific platforms and browsers you need to support (e.g., iOS Safari, Android Chrome, desktop Firefox).
- {{pwa-features}}: The key features of your PWA (e.g., offline support, push notifications, camera access).
- {{constraints}}: Any constraints like legacy browser support, performance budgets, or design limitations.
Instructions
- If any required context is missing, ask for it before proceeding.
- Provide a structured overview of best practices for cross-platform PWA development, covering responsive design, feature detection, and progressive enhancement.
- Suggest specific techniques for optimizing performance and user experience across different devices and operating systems.
- Recommend tools and frameworks that facilitate cross-platform development and testing.
- If requested, share examples of successful PWAs and analyze the strategies they used.
Output format Provide a well-organized response with clear sections: Best Practices, Techniques, Tools, and Examples. Use bullet points for readability. Keep the tone professional and practical.
Guardrails
- Do not invent facts or statistics; rely on established knowledge.
- Flag any assumptions you make about the user's context.
- Stay within the scope of PWA cross-platform compatibility; do not cover general web development unless directly relevant.
Example
- {{target-platforms}}: iOS Safari, Android Chrome, desktop Edge; {{pwa-features}}: offline mode, push notifications; {{constraints}}: must support older iOS versions.
Follow-up prompts
- How can I test my PWA on real devices to ensure consistent behavior?
- What are the most common cross-platform PWA pitfalls and how can I avoid them?
- Can you recommend a specific framework for building a cross-platform PWA with offline support?