Lovable

Push notifications in your Lovable mobile app: Android and iPhone

November 17, 2026 · 6 min read

Illustration of a phone receiving a push notification

Push notifications in a Lovable mobile app work differently on each platform: on Android, standard web push usually works as it does in Chrome, while an iPhone app needs native push through Apple's notification service. So you will likely set up two paths that share one way of sending messages.

That difference surprises many makers, because web push works in Safari for home-screen web apps. Below you will see why the iPhone app is different, what each platform needs, and how to send notifications from your Lovable backend.

What to expect
Reading time: about 6 minutes. Android web push often takes a few hours to set up. iPhone push usually takes longer, because it needs native code and Apple keys. Plan for testing on real phones, since simulators do not show the full picture. PWAtoApp builds the apps; the push setup lives in your project.

Why Android and iPhone differ

On Android, a PWA packaged as a Trusted Web Activity runs inside Chrome. Chrome supports web push, so your service worker can receive notifications just as on the web.

On iPhone, store apps built from web apps usually show the web app inside a native web view. That web view does not support web push, so the app has to use Apple Push Notification service (APNs) through native code instead.

Web push on iPhone does work for web apps added to the home screen from Safari, since iOS 16.4. That is useful, but it is the browser path, not your App Store app. Our guide to push notifications for iOS web apps covers it.

Android: web push

For Android, you set up web push in your Lovable web app, and the app inherits it.

  • Choose a sending service, such as Firebase Cloud Messaging or OneSignal.
  • Add the service worker code that receives messages. Lovable can add it from a prompt.
  • Ask for permission after a clear user action, such as tapping "Turn on alerts".
  • Store each user's subscription in Supabase, so you know where to send.

On Android 13 and newer, users must also allow notifications for the app itself. Our article on Android 13 notification permissions explains that prompt.

iPhone: native push

For the iPhone app, the setup moves into the native project. In a Capacitor project, the Push Notifications plugin handles it.

  • Turn on the Push Notifications capability for your App ID in your Apple Developer account.
  • Create an APNs key (a .p8 file) so your sending service can talk to Apple.
  • Add the push plugin, then register the device and save its token in Supabase.
  • Rebuild the app so the new capability is included in the signed IPA.

If you use Firebase for Android, it can also send to iPhone once you upload your APNs key to it. That keeps one sending service for both platforms.

Sending notifications from Lovable

With both platforms registered, you need one place that sends messages. In a Lovable app, that is usually a Supabase Edge Function. It reads the saved subscriptions or tokens and calls your sending service, for example when an order ships.

Keep the service's secret keys in Supabase secrets, never in the browser code, because anyone can read code that runs on the phone.

Test before you launch

  • Allow notifications, send a test, and check it arrives with the app closed.
  • Refuse notifications, and check the app still works.
  • Tap a notification, and check it opens the right screen.
  • Test on a real iPhone through TestFlight, since the simulator does not show everything.

Where PWAtoApp fits

PWAtoApp builds your Lovable project into Android and iOS apps for €49.99 once, with unlimited builds. Notifications themselves come from your project and sending service, so you set them up there and rebuild. For the rest of the setup, see converting your Lovable product to Android and iOS.

FAQ

Do push notifications help with App Store approval?

They can. Useful phone features show the reviewer that your app does more than a website. See why Apple rejects wrapped web apps.

Is Firebase free for push?

Firebase Cloud Messaging has no charge for sending messages. Check the current terms of any other service you choose.

Can I send the same message to Android and iPhone?

Yes. One Edge Function can send to both, as long as it knows each user's platform and token.

Ready to build for Android and iOS?

€49.99 once includes unlimited Android APK and AAB plus iOS IPA builds, all from one dashboard.

Build my app

Lovable to Android and iOS app