This guide explains how to turn your Lovable web project into a Progressive Web App (PWA). This makes it look and feel like a real app on an iPhone (full screen, no browser bar, and push notifications) without needing Apple App Store approval.
Step 1: Get the PWA Prompt
• Copy this prompt.
In the comments
Step 2: Apply the Prompt in Lovable
• Go to your Lovable project.
• Paste the prompt into the chat.
• Make sure to tell Lovable which pages need this setup (e.g., your main dashboard, content pages, or login page).
• Run the prompt.
Step 3: Setup Push Notifications (VAPID Keys)
• During the process, Lovable will likely ask for your VAPID Public and Private keys to enable push notifications.
• Enter your email address and click generate.
• Copy the Public Key and Private Key shown.
• Paste them back into Lovable when requested and submit.
Step 4: Install on iPhone
• Once Lovable finishes building, open your app's web URL in Safari on your iPhone.
• Tap the Share Button (the square with an arrow pointing up).
• Scroll down and tap "Add to Home Screen" (put on Home Screen).
• Tap Add.
Step 5: Test the App
• You will now see your app icon on your iPhone home screen.
• Open it. It should launch in full screen (without the Safari address bar).
• Navigate to your profile or settings within the app and look for the option to Enable Push Notifications (allow permissions when asked).