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).